$port = 3000
$conn = Get-NetTCPConnection -LocalPort $port -ErrorAction SilentlyContinue
if ($conn) {
  Stop-Process -Id $conn.OwningProcess -Force
  Write-Host "killed PID $($conn.OwningProcess)"
} else {
  Write-Host "no process on $port"
}
