Summary of the new feature / enhancement
As a user, I would expect Get-Command to mirror command discovery; if I can invoke a command (e.g., uptime) then I should be able to find the command pwsh is invoking with Get-Command.
However, Get-Command uptime returns no results, despite simply calling uptime ending up finding and calling Get-Uptime.
Proposed technical implementation details (optional)
Get-Command should implement the same fallback behaviour used in command discovery; if no results are found and the command contains no verb, the Get- verb should be prepended to try to find the command in the same way command discovery normally would find the command.
Summary of the new feature / enhancement
As a user, I would expect Get-Command to mirror command discovery; if I can invoke a command (e.g.,
uptime) then I should be able to find the command pwsh is invoking with Get-Command.However,
Get-Command uptimereturns no results, despite simply callinguptimeending up finding and callingGet-Uptime.Proposed technical implementation details (optional)
Get-Command should implement the same fallback behaviour used in command discovery; if no results are found and the command contains no verb, the
Get-verb should be prepended to try to find the command in the same way command discovery normally would find the command.