title: Batch file to auto login in PuTTY and and run a specific command
body: <p>I am using this command to direct login in SSH.</p>
  
  <pre><code>"C:\Program Files\PuTTY\putty.exe" -ssh msnoc@10.0.0.11 -pw mypassword -P pwd
  </code></pre>
  
  <p>But after login i want to run a command every time</p>
  
  <pre><code>sh isdn st | i Bs
  </code></pre>
  
  <p>Right now I am handling 20 server and its too time taking to login every server and putting the same command.</p>
  
  <p>How do I create a batch file to automate auto login and running the above mentioned command?</p>