The example of LucD is good.
In the attached script you just need to replace the following line:
$row.Size = $fileResult.FileSize
By this line
$row.Size = [math]::Round($fileResult.FileSize/1GB,1)
The example of LucD is good.
In the attached script you just need to replace the following line:
$row.Size = $fileResult.FileSize
By this line
$row.Size = [math]::Round($fileResult.FileSize/1GB,1)