Command to reboot windows computer
shutdown /rThe above command will set a time out of 30 seconds to close the applications. After 30 seconds, windows reboot will start.
If you want to reboot Windows with your own time out value you can use the below command.
shutdown /r /t timeout_in_seconds
To shutdown a Windows computer
To abort computer reboot
To force reboot by closing applications without warning
shutdown /r /f
Open the shutdown GUI
Reboot windows using WMIC
wmic os where Primary='TRUE' reboot