Public/Test-MyNetConnection.TempPoint.ps1

function Test-MyNetConnection
{
<#
    .SYNOPSIS
        Wrapper for Test-NetConnection
     
    .DESCRIPTION
        This function is a wrapper for the Test-NetConnection cmdlet.
        It allows the user to pipe the computer name and the port to be
        tested into the cmdlet without having constantly type the same
        information over and over.
     
    .PARAMETER Server
        Computer FQDN
     
    .PARAMETER Port
        TCP/IP port
     
    .EXAMPLE
        PS C:\> Test-MyNetConnection -Server server.example.com -Port 53
     
    .NOTES
        THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND.
        THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS
        CODE REMAINS WITH THE USER.
#>

    
    [CmdletBinding()]
    param
    (
        [Parameter(Mandatory = $true,
                 Position = 0)]
        [String]$Server,
        [Parameter(Mandatory = $true,
                 Position = 1)]
        [int32]$Port
    )
    
    begin
    {}
    process
    {
        Test-NetConnection -ComputerName $Server -Port $port
    }
    end
    {}
}