title: PowerShell - Rest API GET call on 2.0
body: <p>I need to do an API Get call on PowerShell 2.0 so I can't use the <code>Invoke-RestMethod</code> as it was introduced in version 3.0. </p>
  
  <p>Anyone know how it can be done using PowerShell 2.0? </p>
  
  <p>I have the following so far but don't know how to get the data from it. Preferably to a text file.</p>
  
  <pre><code>$request = [System.Net.WebRequest]::Create('http://www.google.com')
  </code></pre>
  
  <p>How do I extract data from it?
  If pasted into a browser it returns a simple text file with data in it.</p>