pub fn build_shell_invocation( command: &str, shell: Option<&str>, windows_shell_priority: Option<&[String]>, ) -> Result<Vec<String>, String>