windows pkill pid code example Example 1: script to kill a process in windows taskkill /PID 1234 Example 2: cmd kill pid taskkill /F /PID pid_number