Looking only at (Get-Content -Path $pathToJsonFile) | ConvertFrom-Json, it seems that the rest of the JSON is included in the property results, so we can get the result, which I think you want to do:
((Get-Content -Path $pathToJsonFile) | ConvertFrom-Json).results |
ConvertTo-Csv -NoTypeInformation |
Set-Content $pathToOutputFile
FYI you can do ConvertTo-Csvand Set-Contentin one move with the help of Export-CSV:
((Get-Content -Path $pathToJsonFile) | ConvertFrom-Json).results |
Export-CSV $pathToOutputFile -NoTypeInformation