pub fn start_captured_process_with_env( command: &[String], cwd: &Path, stdin_text: Option<&str>, env: Option<&BTreeMap<String, String>>, ) -> Result<CapturedProcess>