pub async fn capture_command_and_check_status( command_str: impl AsRef<OsStr>, args: &[impl AsRef<OsStr>], ) -> Result<Output, CodeError>