Steps :
o Click Start type CMD in the search box. Right click and click open to run Command line
.
o Type shutdown /s /t 3600 and Enter.
Note: 3600 are the amount of seconds before your computer shuts down.
So , 60secs*60mins=3600secs Means 1 Hour.