Private/Get-EncodedUrl.ps1

function Get-EncodedUrl
{
    [CmdletBinding(PositionalBinding=$true)]
    param
    (
        [Parameter(Mandatory=$true)][string]$InputString
    )

    Add-Type -AssemblyName System.Web
    return [System.Web.HttpUtility]::UrlEncode($InputString)

}