function Get-ConsoleCommand
{
$ext = $env:pathext -split ';' -replace '\.','*.'
$desc = @{N='Description'; E={$_.FileVersionInfo.FileDescription}}
Get-Command -Name $ext |
Select-Object Name, Extension, $desc |
Sort-Object Extension |
Out-GridView
}
PS> Get-ConsoleCommandThe original is here: http://powershell.com/cs/blogs/tips/archive/2012/10/18/discovering-useful-console-commands.aspx
I just added the Sort-Object cmdlet.
•