powershell kill process by port code example Example: kill service by port number on windows taskkill /F /PID PORT_NUMBER