title: How to pass & retrieve arguments to a .sh file in nodejs?
body: <p>Can we pass arguments to a .sh file in Nodejs, i am trying to Spawn a <code>.sh</code> file, and want to pass some arguments while spawning,</p>
  
  <pre><code>  var command = spawn(__dirname + "/import.sh", {
      var1: "abc"
    });
  </code></pre>
  
  <p>in the above command i am trying to spawn the file import.sh and also trying to pass arguments along with it, i don't know if it's the correct way<br>
  and how to retrieve the variable value in the <code>import.sh</code> file?</p>