pub fn resolved_command(name: &str) -> CommandExpand description
Create a Command with PATHEXT-aware binary resolution.
Drop-in replacement for Command::new(name) that works on Windows
with .CMD/.BAT/.PS1 wrappers.
Falls back to Command::new(name) if resolution fails, so native
commands (git, cargo) still work even if which can’t find them.
§Arguments
name- Binary name (e.g., “vitest”, “eslint”)
§Returns
A Command configured with the resolved binary path.