title: Save PuTTY output to file from command-line
body: <p>Is there any way to save the PuTTY output to a file using the command line? I know this is easily done using the GUI but in my case it has to be done automatically.</p>
  
  <p>What I'm working on:</p>
  
  <p>User clicks batch file -> starts PuTTY, automatically connects to my device over SSH and runs a bunch of commands -> <strong>PuTTY should save the output to a file</strong>.</p>
  
  <p>The last part I can't get working. Is there any command to do this?</p>