Hi, I like your script so far. I have a question/confusion. I'm on Windows PowerShell 5.1
If I run Get-FolderSize -BasePath c:\users\myself\downloads, then I get four columns: FolderName, SizeMB, SizeGB, and FullPath.
However, if I run the same and add the -AddTotal switch, then suddenly, I get more columns: FolderName, SizeBytes, SizeKB, SizeMB, SizeGB, FullPath, and HostName. (I also see the total line at the top.)
Is there a reason that "AddTotal" is returning more data fields/properties?
Using Get-Member, it looks like "AddTotal" is returning a "PsCustomObject" as well the other "PS.Folder.List.Result" objects.
Perhaps if the GrandTotal is in the same object format, then there won't be surprise extra results.
Let me know what you think and if I can be of service to make a change.