Find the path to an executable, similar to typing which in your terminal. Reads the PATH
environment variable unless overridden with options.PATH
.
function
which
command: string,
): null | string;
@param command
The name of the executable or script to find
@param options
Options for the search