how to kill server using windows terminal 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