С
(Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan -Filter "ElementName = '$needed_plan'").gettype()
Size: a a a
С
A
$pp = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan -Filter "IsActive=True AND ElementName='$needed_plan'"
if ($pp) { .. }
С
С
С
A
A
С
С
A
С
С
A
С
С
С
С