I am trying to automate the execution of several commands currently carried out manually in routine server maintenance sessions. Some of the commands would prompt the user for input mid-execution, and would pause execution until the user enter said input. My intent is for the script to execute the commands, detect when cmd prompts for input, then notifies the user to enter it, which the script will write into stdin. Currently, I don't know how to detect said prompts. First, listening for sp