title: Invoke-RestMethod In Powershell Authorization Issue (header)
body: <p>I am trying to do a basic GET with Invoke-RestMethod via PS to our Netbox environment.  I am using my API token from netbox and putting it in an Authorization header, but regardless of how I try it, I get "Authentication credentials were not provided" from Powershell.  I'm at a loss as this works perfectly fine via Postman.</p>
  
  <pre><code>$APIKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" (removed)
  
  $Headers = @{}
  $Headers.Add("Authorization", "Token $APIKey") 
  $Headers.Add("Content-Type", "application/json")
  $Headers.Add("Accept", "application/json")
  
  $URI = "https://dcim.xxxxxxx.net/api/dcim/devices"
  
  $Test = Invoke-RestMethod -Uri $URI -Headers $Headers
  </code></pre>
  
  <p>I've had tried formatting the headers many different ways, hardcoding things just to test, but to no avail.</p>