how to end task using powershell code example
Example 1: script to kill a process in windows
taskkill /PID 1234
Example 2: stop process id powershell
Stop-Process -ID 2137 -Force
taskkill /PID 1234
Stop-Process -ID 2137 -Force