How can I answer a command that needs input in Plink?
<p>I run a command in Linux remote machine using plink (from batch file in Windows).</p>

<p>For example:</p>

<pre><code>plink.exe -ssh root@IP -pw pass -m testCommands.txt &gt;&gt; uninstall.log
</code></pre>

<p>In <code>testCommands.txt</code> I have a command that perform uninstall of application, 
the problem is that command of "uninstall" require an answer (<code>y</code> or <code>n</code>),
How can I send answer in addition to what I already send?</p>

<p>Here is the question I have:</p>

<blockquote>
  <p>[?7hAre you sure you want to completely remove "APPLICATION" and all of its components?<br>
  Yes [y, Enter], No [n]"</p>
</blockquote>