pub fn spawn_command(cmd: &str, install_help: Option<&str>) -> Result<i32>
Execute a command and return its exit code (non-exec variant for testing).