title: Call external batch in WinSCP to capture console output
body: <p>I have a WinSCP code written for some file transfer ... That's working fine.</p>
  
  <p>My requirement is: before I exit from WinSCP console, I want to execute another batch to take a screenshot of that WinSCP console and then I want to say <code>bye</code> to the WinSCP console. But as long as the second operation is not complete, I don't want to exit the WinSCP console.</p>
  
  <p>I tried:</p>
  
  <pre><code>winscp&gt; Call %some_path%\test.bat
  </code></pre>
  
  <p>but it says some error like:</p>
  
  <p><img src="https://i.stack.imgur.com/FEExv.png" alt="enter image description here"></p>