stop process id 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