Example code: This is inputed with the command prompt but you can input this code also in the "run" located at the start menu.
//this will shutdown your computer
//this will restart your computer
//this will log off your computer
//Setting shutdown, restart, log off countdown timer.
//just add -t xx
//the xx is the number of seconds before the computer will shutdown
shutdown -s -t 180
//this code will make your computer shutdown when the countdown timer finished counting off 3 minutes(180seconds)
//Sometimes there are processes that need to force to shutdown so we need to add -f with the code
shutdown -s -t 180 -f
//When you set a shutdown command, there will a window that will pop-out. You can't close and cancel the shutdown command unless you will input.
//this will cancel the shutdown command for you