I'm in the middle of making a Python script to shutdown, restart, hibernate or put to sleep after a few seconds.
I know its subprocess.call(["shutdown", "/s"])
to shutdown, "/r"
to restart and "/h"
to hibernate.
How can you put the computer to sleep using call()
on Windows 10?