Here is a page showing some of the commands you can run when you want to shutdown or restart windows. This works well when you are in a TS session or something where you don’t have access to the normal shutdown buttons.