For system, network and cloud administrators
I wanted to schedule turning off/shutting down Windows processes/applications because as time passes during my day at my computer, I open more and more applications and they get crowded in my workspace. This is why, I decided to create a PowerShell script that I would execute as soon as I’ve opened my computer. A form of a scheduler that stops applications while I’m working at my computer.
And the script is a pretty easy one. Basically, the script consists of 2 commands: one command that tells the script to “wait” X seconds and a 2nd command that will actually stop/shutdown the Windows process/application that you need.
I’m using the Windows PowerShell whenever I plan on automating ordinary tasks like scheduling my computer to turn off at a specific time. And I prefer using PowerShell scripts rather than installing 3rd party software to do those ordinary tasks for me. But no matter the purpose of your PowerShell use, I believe you’ll find this small article useful.