title: Pass multiple query parameters to WebService via PowerShell
body: <p>I am calling webservice GET method via PowerShell like so:</p>
  
  <pre><code>$result = Invoke-WebRequest -Uri https://localhost/MyApi/Foo/blahA/blahB?three=testing&amp;four=2015-09-18T06:45:29.5199432Z
  </code></pre>
  
  <p>However, this gives me the following error:</p>
  
  <blockquote>
    <p>The ampersand (&amp;) character is not allowed. The &amp; operator is reserved for future use; wrap an ampersand in double
    quotation marks ("&amp;") to pass it as part of a string.</p>
    
    <ul>
    <li>CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException</li>
    <li>FullyQualifiedErrorId : AmpersandNotAllowed</li>
    </ul>
  </blockquote>
  
  <p>If it matters here is my WebAPI code and routing (the method has two required parameters, and 3 optional):</p>
  
  <pre><code>[HttpGet, ActionName("Foo")]
  public string Foo(string one, string two, 
         string three = null, DateTime? four = null, int five = null)
  {
      //do stuff
      //return some string
  }
  ...
  routes.MapHttpRoute(
             name: "Foo",
             routeTemplate: "Foo/{one}/{two}",
             defaults: new { controller = "Testing", action = "Foo" }
             );
  </code></pre>