xxxxxxxxxx
import os
# For Windows
os.system("shutdown /s /t 0")
# For macOS and Linux
os.system("shutdown now")
xxxxxxxxxx
sudo shutdown -r now
# To shut down your system immediately use +0 or its alias now:
xxxxxxxxxx
shutdown
echo "General Command for handling Shutdowns in CLI"
shutdown /a
echo "/a is a flag too remove all shutdown timers"