The shutdown command is very interesting and can do a lot of things.

1.  Start up Command Prompt
There are many options that you can use for command prompt Shutdown -s shuts down the computer
Shutdown
Below is the dialog box from shutdown -s
Shutdown
If you type in shutdown -s and then decide you do not want to shutdown the computer after all before the timer in the dialog box reaches zero, go back into the command prompt window and type in shutdown -a
Shutdown
You can use the -t * attribute after the -s attribute to edit the time before the computer turns off (replace * with the number of seconds before shutdown)
Shutdown
You can also use the -r attribute, and instead of shutting down your computer like -s, -r restarts your computer (not -s -r, just simply shutdown -r)
to add a comment to the dialog box, simply put -c * after the -r or -s (replace * with your comment, it needs to be in "quotes" if it contains spaces)
Shutdown
type in shutdown -i for an interface to shutdown your computer or remote computers
Shutdown
Typing in shutdown -l logs you out
Shutdown
lastly you can use the -f attribute after the -s or -r to also force all applications to shutdown without warning
Shutdown