pub fn find_on_path(program: &str) -> Option<PathBuf>
Locate program on PATH. A name with a path separator is checked as-is. On Windows, a bare name is tried with every PATHEXT suffix (.exe, .cmd, …) as well as verbatim.
program
PATH
PATHEXT
.exe
.cmd