title: How to make an authenticated web request in Powershell?
body: <p>In C#, I might do something like this:</p>
  
  <pre><code>System.Net.WebClient w = new System.Net.WebClient();
  w.Credentials = new System.Net.NetworkCredential(username, auth, domain);
  string webpage = w.DownloadString(url);
  </code></pre>
  
  <p>Is there a Powershell version of this, or should I just call through to the <a href="https://stackoverflow.com/questions/340553/what-is-the-best-way-to-send-http-requests-from-windows-powershell">CLR</a>?</p>