cmd kill process id code example Example 1: script to kill a process in windows taskkill /PID 1234 Example 2: kill process in win by pid kill process by pid