Wow....thanks a lot!
I ran into an issue when I tried to run it. Any ideas?
Cannot index into a null array.
At C:\iopsreport.ps1:8 char:20
+ $interval = $stats[ <<<< 0].IntervalSecs
+ CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
+ FullyQualifiedErrorId : NullArray