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 this example:
(Get-Command notepad.exe).Path