title: Unable to find type [System.Web.HttpUtility] in PowerShell
body: <p>I'm trying to obtain an access token for a Microsoft Translator application by using PowerShell, but certain commands in the process fail as a result of the error:</p>
  <pre><code>Unable to find type [System.Web.HttpUtility]
  </code></pre>
  <p>Before receiving this error, I copied and pasted the code from <a href="https://msdn.microsoft.com/en-us/library/hh454950.aspx" rel="noreferrer">this MSDN page</a> into the PowerShell ISE, and replaced the placeholder values with my actual credentials:</p>
  <pre><code># ...
  $ClientID = '&lt;Your Value Here From Registered Application&gt;'
  $client_Secret = ‘&lt;Your Registered Application client_secret&gt;'
  
  # If ClientId or Client_Secret has special characters, UrlEncode before sending request
  $clientIDEncoded = [System.Web.HttpUtility]::UrlEncode($ClientID)
  $client_SecretEncoded = [System.Web.HttpUtility]::UrlEncode($client_Secret)
  # ...
  </code></pre>
  <p>What additional code do I need to add for this to work?</p>