Hi you can try this as mentioned below using cs convertor to get it in usable format :
Remote script :
Get-Disk | Where-Object PartitionStyle -EQ 'RAW' | ConvertTo-Csv
Invoke script :
$out = Invoke-AzVMRunCommand -ResourceGroupName "Test" -VMName "TestVM" -CommandId runpowershellscript -ScriptPath C:\Users\Desktop\RawDiskScript.ps1 -Verbose
$s=$out.Value[0].Message
$x=$s | ConvertFrom-Csv
$x | Export-Csv -Path C:\Users\Desktop\testrawdisk.csv -NoTypeInformation