title: How do you enter something at a console prompt programmatically?
body: <p>I have program, that must interact with a console program before my program can continue what it is doing. I'm trying to avoid my user from having to interact with this dos program. So, I created a <code>.bat</code> file that does everything I need to do except for the last step which still requires user interaction that I'm trying to avoid.</p>
  <p>Specifically, the command I type ends up at a prompt where I need to automatically enter <code>y</code> and then <kbd>Enter</kbd> (to say yes to the prompt) and then I want to exit out.</p>
  <p>Is there any way that I can make this happen automatically without my user having to enter <code>y</code> and <kbd>Enter</kbd>? Ideally, I'd like to have the console window NOT even pop up while this is going on.</p>