title: Node child_process.spawn multiple commands
body: <p>I wan to automate the creation and extracting of keystore.
  The problem I'm facing is how to join the commands using the ' <strong>|</strong> ' symbol or similar solution. </p>
  
  <pre><code>//Original Command    
  var command='keytool -exportcert -storepass mypass -keypass mypass  
  -alias myalias -keystore mykey.keystore | openssl sha1 -binary | openssl base64';
  
  //Arguments for the spawn    
  var keyArgs = [
        '-exportcert',
        '-storepass','mypass',
        '-keypass','mypass',
        '-alias','myalias',
        '-keystore',"myjey.keystore",
  
  
        'openssl','sha1',
        '-binary',
        'openssl','base64',
  
  
    ];
  exec('keytool',keyArgs,{cwd:appCreateFolder+"/"+opt.id+"/Certificates"},function(e){
      console.log(chalk.cyan('Key created'));
        })
  </code></pre>