pub fn run_command(command: Command) -> Result<Output, CommandError>
Helper function for running commands.