pub fn which(cmd: &str) -> Option<PathBuf>
shutil.which(cmd): the path of an executable, looked up in PATH if cmd has no directory; on Windows, with the extensions of PATHEXT, and in the current directory first.
shutil.which(cmd)
PATH
cmd
PATHEXT