Depending on your OS, there's shutdown.exe in $windir\system32. If you just type "shutdown" from a command prompt, it will show you a list of options. You could create a shortcut to that with the appropriate switches, and set the timer to however many seconds are in two hours.