title: Run shell script (with parameters) on Windows command line via Plink
body: <p>I need to execute a shell script remotely inside the Linux box from Windows</p>
  
  <pre><code>#!/bin/bash
  if [ "$#" -ne 1 ]; then
  
      echo "Illegal number of parameters"
      exit
  fi
      echo "$1"
  </code></pre>
  
  <p>Here is the command I ran from Windows command prompt</p>
  
  <pre><code> cmd&gt;   plink.exe -ssh username@host -pw gbG32s4D/ -m C:\myscript.sh 5
  </code></pre>
  
  <p>I am getting output as </p>
  
  <blockquote>
    <p>"Illegal number of parameters"</p>
  </blockquote>
  
  <p>Is there any way I can pass command line parameter to shell script which will execute on remote server?</p>