I use the following shutdown command to turn off my computer after a certain timeperiod:
shutdown /s /t 3600
/s means that we want to shutdown the pc
/t indicates a delay in the time that we want to shutdown/restart. In this case, we want the local pc to shutdown in 3600 seconds (1 hour).
Here’s a good reference for other options available to the shutdown command: