Get rid of output redirection and pass stdout/stderr to command.execute.