$start = ($currentdate = get-date).adddays(-5).ToString("d") $end = ($currentdate = get-date).adddays(-1).ToString("d")
The dates were populated right at the beginning.
$dskYYY would be replaced by one of the following: $dskreadlatency, $dskwritelatency, $dsknumberwrites, $dsknumberreads
Sorry for the confusion!
Additionally I am exporting this information to an excel spreadsheet so at some other point of my code, I set the appropriate column to the proper variable.