The layout of the daily csv file will be "Clustername-ResourcePoolname-Date.csv"
so something like "cluster1-rp1-20130811.csv"
I tried the script above but resulted in error.
Below is the error I got (sorry some parts are in Japanese...)
Import-Csv : ファイル "C:\powercli\stats\" を開けません。
発生場所 C:\test_scripts\gather9.ps1:7 文字:30
+ $monthArray += Import-Csv <<<< -Path "$folder\$name"
+ CategoryInfo : OpenError: (:) [Import-Csv]、DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.ImportCsvCommand
The error is saying that it could not open file "C:\powercli\stats" when doing the Import-Csv.