Which is a Windows command script which shows path to the file which gets executed when a name is entered on the command line
License is free to end users, but I retain the copyright. This program is shared "as-is" without warranty, promise of support, or liability for consequences of its use.
Command-line invocation is according to the syntax:
which command ...