title: Use batch file to input letter to perform action in cmd
body: <p>I have an .exe that runs in command prompt, it then asks me to press a letter to perform a task. I want a batch file that runs the .exe file and presses y to perform the action. This is what I have so far:</p>
  
  <pre><code>start cmd.exe /k ""C:\Users\mayes\Documents\Utilities\Macros\Second Keyboard Macros\Intercept\intercept\intercept.exe""
  </code></pre>
  
  <p>All what it does is open the .exe file. I need it to press y also.</p>
  
  <p>Demonstration of what I want the batch file to do:</p>
  
  <p><a href="https://media.giphy.com/media/Ujsia9OeUqJuo/giphy.gif" rel="nofollow noreferrer">https://media.giphy.com/media/Ujsia9OeUqJuo/giphy.gif</a> </p>