Return output after running a command.
Add test cases for workflow status.