A set of cmdlets for testing connectivity between devices, can make use of powershell remoting and jobs.
Powershell Core compatible.
Test-PortConnectivity -Source 'localhost' -RemoteDestination 'dc1' -Port 57766
Test-PortConnectivity '127.0.0.1' 'dc1' 57766 -Protocol TCP -Iterate
Test-PortConnectivity -Source server01.contoso.com -RemoteDestination server02.contoso.com -Port 135 -credential $credential
Publish-ListeningPort -port 443
Publish-ListeningPort -port 443 -asjob
Publish-ListeningPort -port 443 -exitonconnect
Publish-ListeningPort -port 443 -remotedestination server01.contoso.com -exitonconnect -asjob -credential $credential