<t>You need to load the System.Web assembly. Use the Add-Type cmdlet like so,<br/>
<br/>
PS C:\> [System.Web.HttpUtility]::UrlEncode("www.google.com")<br/>
Unable to find type [System.Web.HttpUtility].<br/>
<br/>
PS C:\> Add-Type -AssemblyName System.Web<br/>
PS C:\> [System.Web.HttpUtility]::UrlEncode("www.google.com")<br/>
www.google.com<br/>
<br/>
```</t>