I'm trying to figure out how powershell resolves names, but I can't seem to find any information.
Here is the scenario:
There exists an executable:
c:\stuff\log.exe
The path is set so $env:path = 'c:\stuff\'
I have a module loaded that includes a function name "log" and a binary cmdlet aliased as 'log'.
When I type "log" at the command line, how does PowerShell decide whether to execute c:\stuff\log.exe or the function name log, or the cmdlet alieased as log?
From experimentation it seems the resolution order is: Cmdlet Function executable on the path
But I can't find anything that documents this.