This guide shows how to shut down Windows using shutdown.exe and PowerShell, including options for timers, restarts, hibernation, shortcuts, and remote control.
I am using Actiona, a Linux GUI automation tool that automates mouse clicks, keyboard actions, and file tasks to automate my Linux desktop.