this is a better version :
$list = @('OverrideACSettingIndex', 'OverrideDCSettingIndex', 'ProvACSettingIndex', 'ProvDCSettingIndex')
Get-ChildItem -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse |
Where-Object { $_.PSParentPath -match...