pub fn exec_cmd(cmd: &mut Command, verbose: bool, msg: &str) -> MyResult<Output>
Executes the command as a child process, waiting for it to finish and collecting all of its output.