Small module for getting an active / available TCP port numbers.
Helpful if you are wanting to find a usable ephemeral port, or want to see all TCP ports currently in use.
Get an available ephemeral TCP port number.
Get-InactiveTcpPortNumber -Random
57992
List all TCP port numbers currently in use.
Get-ActiveTcpPortNumber
53
22
60664
37839
48314
...