Similar to CMD Telnet this PowerShell will test a port for you based on certain parameters. function Test-Port { Param( [parameter(ParameterSetName=’ComputerName’, Position=0)] [string] $ComputerName, [parameter(ParameterSetName=’IP’, Position=0)] [System.Net.IPAddress] $IPAddress, [parameter(Mandatory=$true , Position=1)] [int] $Port, [parameter(Mandatory=$true, Position=2)] [ValidateSet("TCP", "UDP")] [string] $Protocol ) $RemoteServer = If ([string]::IsNullOrEmpty($ComputerName)) {$IPAddress} Else {$ComputerName}; If ($Protocol -eq…