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").