Add ability to detect prompts in stdout from run_command