Easy way to shut down your computer is make a shutdownbutton on your desktop. (Old school style)
Open notepad, and type:
@echo on
shutdown /f /s /t 5
Then save it to desk top ie. shutdown.bat or what ever name you want, but the extension must be .bat
That will do the job. Just doubleclick it when you want to shutdown yoour computer.
Shutdown is windows command and parameters are:
/f shuts / forces down all programs without warning (works with parameter /t)
/s shuts down your computer / server
/t 5 delays shutdown time in sec.
You can chk and use more parameters in cmd and type shutdown /?