pub fn system_path_has(name: &str) -> bool
name (or name.exe, .cmd, .bat on Windows) found as a file in a directory of PATH.
name
name.exe
.cmd
.bat
PATH