So the request was to take JSON from API and do some filtering on it and then export it to CSV, here is how to do that in Powershell.
I use the Where filter and the Invoke-RestMethod along with customer psobjects and stacks for best performance.
All the code can be found on github:
https://github.com/HealisticEngineer/...
Follow us on
Twitter - / tipsforitpros
Facebook - / tipsforitpros