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
Try the where command on Windows 2003 or later (or Windows 2000/XP if you've installed a Resource Kit).
BTW, this received more answers in other questions:
Is there an equivalent of 'which' on Windows?
PowerShell equivalent to Unix which command?