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
A quick-and-dirty match to Unix which is
which
New-Alias which where.exe
But it returns multiple lines if they exist so then it becomes
function which {where.exe command | select -first 1}