A caffeinate equivalent on Windows would be nice. It鈥檚 so annoying when you do updates and the computer goes to sleep
There is already a program called NoSleep but I agree, this would be nice to have in PowerShell but it is also difficult because if there was a cmdlet then it would have to work on any OS. I think this should rather be a separate PowerShell cmdlet on the PSGallery. In general, PowerShell is moving into the direction of following an extension model containing only basic cmdlets and the rest being optional module extensions to it.
I'm using this program on Windows, seems to work well.
This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.
Most helpful comment
There is already a program called NoSleep but I agree, this would be nice to have in PowerShell but it is also difficult because if there was a cmdlet then it would have to work on any OS. I think this should rather be a separate PowerShell cmdlet on the PSGallery. In general, PowerShell is moving into the direction of following an extension model containing only basic cmdlets and the rest being optional module extensions to it.