When running in PowerShell where WMI is deprecated the script fails. on line 1215.
When running in PowerShell where WMI is deprecated the script fails. on line 1215.