Use Powershells Invoke-RestMethod cmdlet to export a report and save it as a file.