Recently I wanted to start a server in port 1234 & I got an error telling that some other process is using it.
Here is a one-liner you can use to kill an existing process bound to a port.
Stop-Process -Id (Get-NetTCPConnection -LocalPort 8899).OwningProcess -Force