how to temporarily stop computer from sleeping in powershell?I

how to temporarily stop computer from sleeping in powershell?I

I have a long running powershell script and while it's running the computer goes to sleep. Is there something I can do in powershell to suspend sleeping and then at the end of the script restore it to its previous state?

相关内容