Not quite what we're looking for, although I can certainly see some other applications of that to some future tasks.
Here's what we're trying to do:
We need to get a list of programs installed on machines. Since Automate doesn't have that built-in (that I can find), we're using a command prompt to run WMIC against each machine (wmic /node:[machine] product get name,version > [outputfile.txt]). This gives us what we need; however, it takes quite a bit of time to retrieve the list of each machine, especially if there are a lot of programs. We have a 'Wait' step of five minutes for each iteration, as we did run into one machine during testing that took almost four minutes to retrieve the whole list.
The idea was to create something that can check if an error message is on the screen (or, even better check for the error message and/or a ready prompt). That way, we can move on to the next machine without having the task wait for five minutes per machine. Waiting that long between each machine means it will take days to go through everything and we would like to have a process that can run once a week.
Make sense?
EDIT: using a batch file, the resultant output is the text from the batch file, not the actual output from the command.