Functions/ServerWebServices/Get-PASServer.ps1

# .ExternalHelp psPAS-help.xml
function Get-PASServer {
    [CmdletBinding()]
    param(    )

    BEGIN { }#begin

    PROCESS {

        #Create URL for request
        $URI = "$Script:BaseURI/WebServices/PIMServices.svc/Server"

        #send request to web service
        $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $Script:WebSession

        If ($null -ne $result) {

            $result

        }

    }#process

    END { }#end

}