I am trying to write a script to get all datastore in the cluster and it should give me the data in table format like datastorename, clustername,capacityGB, freespaceGB,usedspace=freespaceGB/capacityGB *100

Hi LucD, I see "PipelineVariable" won't be recognized under PowerShell version we use. Is there alternate how we can achieve this under PowerShell v3? I saw your article under below link, however, unable to put it together as usable script!

Its just that we want to export Cluster details (not SDRS) as well when exporting datastore list (Name, capacity, free).