Hi there is a shutdown program that shuts down your computer immediately. Program and code is written in Python for Windows, Good luck with your use. Added .exe file.
Technical problems - help me You can cancel the shutdown of the computer with this command shutdown -a - Cancel the shutdown of the system. This parameter can only be used during the waiting period.
About compilations: to Compile the .exe file, download pyinstaller, using this command pip install pyinstaller, then pyinstaller will be installed or you can read in detail https://www.pyinstaller.org/ on this resource everything is described in detail. installation.