Hello,
-
It looks like the reason that you might not be getting any output is the placement of your Export-Csv line in the script. Try moving the following line to the very end (after the last "}}}" which eventually close the first foreach statement script block):
$report | Export-CsvESXiStorageWWN.csv-NoTypeInformation-UseCulture
There are a few things going on there, but moving that Export-Csv line outside of the foreach statement should help with the "no output file generated" problem. Does it?