PowerShell - How do I call a cmdlet in a function when overriding that cmdlet's name with the same name as the function?
You the cmdlet's module name to disambiguate the names:
PS> Get-Command Start-Process | Format-Table ModuleNameModuleName----------Microsoft.PowerShell.ManagementPS> Microsoft.PowerShell.Management\Start-Process Notepad
This will do the trick as well - thanks Keith Dahlby! http://twitter.com/dahlbyk/status/55341994817503232
$unName=Get-Command 'Update-Name' -CommandType Cmdlet;function update-name { & $unName}