Convertir au format CSV, JSON à l'aide de PowerShell

J'ai un exemple de format JSON ici qui convertit bien si j'utilise quelque chose comme: https://konklone.io/json/

J'ai essayé le code suivant dans PowerShell:

(Get-Content -Path $pathToJsonFile | ConvertFrom-Json) 
| ConvertTo-Csv -NoTypeInformation 
| Set-Content $pathToOutputFile

Mais le seul résultat que j'obtiens est ceci:

{"totalCount":19,"resultCount":19,"hasMore":false,"results":

Comment puis-je convertir correctement dans PowerShell?

OriginalL'auteur Anders Ekelund | 2017-04-24