I want to loop over a static class's properties.
[EnvDTE.Constants] | get-member -static | where-object {$_.MemberType -eq "Property" -and $_.Name -like 'vsP*'}
Instead of then going and manually typing the names like:
[EnvDTE.Constants]::vsProjectItemKindMisc
tried:
| Select-Object {$_.Value}
| Select-Object {$([EnvDTE.Constants]::$_.Name)}
| Invoke-Expression "[EnvDTE.Constants]::$_.Name"