Say you want the computer to shutdown at some point in the future automatically, well there is some code for that.
simply hit windows key + r and search for command prompt.
click it and then input the number of seconds, it should shutdown the pc for you at that point in time after the seconds pass.
Have at it.
{**Note: number = seconds}code:
shutdown –s –t numberExamples:(= 1hour)
shutdown –s –t 3600
(= 2hours)
shutdown –s –t 7200
(= 3hours)
shutdown –s –t 10800