pub fn command_available(cmd: &str) -> boolExpand description
Check if a command is available on the system via PATH lookup. On Windows, tries common executable extensions (.exe, .cmd, .bat, .ps1, .com) since executables require an extension to be found.