There comes a time when you’ll need to know how to stop a Windows application (your browser, your chat application, etc.) via the Windows PowerShell. It’s useful when you’re planning on creating scripts to automate tasks. Here we go.
Stop-Process -Name ApplicationName
ApplicationName is the name of your Windows application that you want to stop. For example:
Stop-Process -Name Slack
Stop-Process -Name Teams
If you want to include more processes/applications, you’ll need to get a full list of all active/running Windows processes/applications first.