how to see what ports are used code example
Example: see what ports are in use
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess