title: Convert a curl command to powershell
body: <p>I would like to convert a command to generate a masterkey from curl to PowerShell but I never did things like that before..
  The objective is to access to an ovea Api but first I have to generate a masterkey.
  Here is the curl command (tested on centos and works):</p>
  
  <pre><code>curl -L -H 'Content-Type: application/json' -H 'Authorization: Basic Yw...=' -X POST https://dnsadmin.test.com/apikeys --data '{"description": "masterkey","domains":["testapi.com"], "role": "User"}'
  </code></pre>
  
  <p>And here is what I tried:</p>
  
  <pre><code>$headers = @{}
  $headers.Add = ("Authorization",'Basic Yw...=')
  $headers.Add {-description = "masterkey","domains" ["testapi.com"], "role": "User"}
  Invoke-RestMethod -Method Post -Uri https://dnsadmin.test.com/apikeys -Headers $headers -ContentType "application/json"
  </code></pre>
  
  <p>If any of you have an idea I would take it thank you.</p>