pub fn which(name: &OsStr) -> Option<PathBuf>
The first executable name on PATH (or name itself if it’s a path).
name
PATH