set timer to shut down pc code example Example: how to turn off pc at specific time shutdown -s -t <TimeInSeconds>