Windows powershell: test port status

Test-NetConnection -Port <port> <IP address>