Summary of the new feature / enhancement
Today I wanted to sort the parameter help by command name like so: Get-Help Get-WinEvent -Parameter * | sort name but there was no tab completion for name. I thought the fix would be to simply add the Outputtype attribute, but it turns out that Get-Help uses PSCustomObjects for its output so there is no way for me to specify it in the outputtype attribute.
Proposed technical implementation details (optional)
Create new public types for all the object types that Get-Help can output and specify them as the OutputType for Get-Help. Technically we don't even need to update the actual output from the command (though obviously that would be ideal).
Summary of the new feature / enhancement
Today I wanted to sort the parameter help by command name like so:
Get-Help Get-WinEvent -Parameter * | sort namebut there was no tab completion for name. I thought the fix would be to simply add the Outputtype attribute, but it turns out thatGet-Helpuses PSCustomObjects for its output so there is no way for me to specify it in the outputtype attribute.Proposed technical implementation details (optional)
Create new public types for all the object types that
Get-Helpcan output and specify them as the OutputType forGet-Help. Technically we don't even need to update the actual output from the command (though obviously that would be ideal).