Private/Helper/New-CWMUrl.ps1
function New-CWMUrl { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Justification = 'No creation impact.')] param( [string]$Endpoint, [string]$URLParameters ) if(!$script:CWMServerConnection){ return } $URL = "https://$($script:CWMServerConnection.Server)" $URL = Join-Url $URL $script:CWMServerConnection.Codebase $URL = Join-Url $URL $script:CWMServerConnection.BasePath $URL = Join-Url $URL $Endpoint $URL += $URLParameters $URL } |