title: how to translate curl command in powershell
body: <p>I've this command: </p>
  
  <pre><code>curl -s -L --header "PRIVATE-TOKEN:XXXX" https://myuri/"
  </code></pre>
  
  <p>And I need to convert to PowerShell</p>
  
  <p>I've tried this, but doesn't works:</p>
  
  <pre><code>Invoke-RestMethod -Method Get -Headers @{"AUTHORIZATION"="XXXXXX"} -Uri https://myUri
  </code></pre>
  
  <p>I've also tried this: </p>
  
  <pre><code>PS &gt; $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
  PS &gt; $headers.Add("Authorization","XXXXXX")
  PS &gt; $headers.Add("Accept","application/json")
  PS &gt; $headers.Add("Content-Type","application/json")
  PS&gt; $uri = "https://myUri"
  PS&gt; $response = Invoke-RestMethod -Uri $uri -Headers $headers -Method Get -ContentType "application/json"
  PS&gt; $response
  PS&gt; 
  </code></pre>
  
  <p>but the <code>$response</code> is empty.</p>
  
  <p>Any help ? </p>