How do I ask PowerShell where something is?
For instance, \"which notepad\" and it returns the directory where the notepad.exe is run from according to the current
My proposition for the Which function:
function which($cmd) { get-command $cmd | % { $_.Path } } PS C:\> which devcon C:\local\code\bin\devcon.exe