When I run it as is, it's generating an empty output.csv file (no properties also). But when I comment out the where clause, it's generating some results, but appears with all properties and not the calculated ones. The resulting properties generated are: FileSystemVersion, DatacenterId, Datacenter, ParentFolderId, ParentFolder, DatastoreBrowserPath, FreeSpaceMB, CapacityMB, Accessible, Type, StorageIOControlEnabled CongestionThresholdMillisecond, State, ExtensionData, CapacityGB, FreeSpaceGB, Name, Id, Uid.
Also, and I'm not sure if this makes a difference or not, the resulting datastore number format is in decimal form like this for example: 8190.758789. Does the where clause need to be something like where{$_.FreeSpaceGB -gt "8190*" or so? BTW I did try this but whenever I leave the where clause, the result output.csv file is empty.