pub fn exec_command(cmd: &str, args: &[String]) -> Result<(String, i32)>
Execute a command and capture its output.