Support setting stdout, stderr for run_command()