20 Cluster\17 DRS Migrations =================================================================
added [ if ($VIVersion -ge 5) ] logic to control whether SDRS event extraction happened
that fixed

2:43:09 PM ..start calculating DRS & SDRS Migrations by Alan Renouf, Jonathan Medd v1.2 [13 of 113]
The variable '$MigrationQuery2' cannot be retrieved because it has not been set.
At D:\repos\vCheckVirTechDev\vCheck-vSphere\Plugins\20 Cluster\17 DRS Migrations.ps1:10 char:21
+ $SDRSMigrations = @($MigrationQuery2 | Where {$_.FullFormattedMessage -imatch "( ...
+                     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (MigrationQuery2:String) [], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined

2:43:09 PM ..finished calculating DRS & SDRS Migrations by Alan Renouf, Jonathan Medd v1.2 [13 of 113]