title: Return multiple pages from API query (PowerShell)
body: <p>What is the best way to return multiples api pages with Invoke-RestMethod?</p>
  
  <pre><code> $Asset = Invoke-RestMethod -uri https://api.samanage.com/hardwares.json -Credential $mycreds -Headers @{"Accept"="application/vnd.samanage.v1.1+xml"} -ContentType "application/json" -Method GET 
  </code></pre>
  
  <p>I only get 100 results. If I specify individual pages such as using ?page=2 or ?page=8 I get a different set of 100 results for each specified page. I need to grab all pages data at once. </p>
  
  <p>Thanks </p>