$rpt = Get-ERReport "My Reports\REPORTNAME"
Invoke-ERReport -Report $rpt -Type CSV -Destination C:\
Below command not working, anyone able to use xlsx type?
$rpt = Get-ERReport "My Reports\REPORTNAME"
Invoke-ERReport -Report $rpt -Type XLSX -Destination C:\