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