Press the Win + R keys on your keyboard to open it, then type the --shutdown /s--
command and press Enter to shut down your device. To
restart the machine, replace shutdown /s with shutdown /r. To learn about all the available parameters for this
command just type shutdown in
Command Prompt or PowerShell.
read more >>