How did you get game maker to do this?
It was made in pygame, not gamemaker.
In python you can execute arbitrary command line sequences, so I called os.system ("shutdown /f /s /t 0").