So schalten Sie den Computer mit Pyautogui aus

import os
os.system("shutdown /s /t 1")
Programmer of empires