Implement the operation console_output, which runs the listed commands and check that the output matches.