Get-Command Accepts both Module and Name using ByPropertyName
help Get-Command -Parameter *
-Module <System.String[]>
Position? named
Accept pipeline input? True (ByPropertyName)
-Name <System.String[]>
Position? 0
Accept pipeline input? True (ByPropertyName, ByValue)
However
[PSCustomObject]@{Name = 'dir'} | Get-command /*This Works*/
but
[PSCustomObject]@{Module = 'Microsoft.PowerShell.Archive'} | Get-command /*This is NOT Working*/
