title: Pass arguments to npm script in order to execute
body: <p>I am trying to execute my test using protractor and i would like to use line command to inform the user and password to login into the application but it is not working for me:</p>
  <p>This is my package.json:</p>
  <pre><code> &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;local&quot;: &quot;ng serve --configuration hmr --host local.dev.net&quot;,
      &quot;build&quot;: &quot;ng build --prod&quot;,
      &quot;build:devtest&quot;: &quot;npm run i18n &amp;&amp; ng build -c devtest&quot;,
      &quot;build:dev&quot;: &quot;npm run i18n &amp;&amp; ng build -c dev&quot;,
      &quot;build:qatest&quot;: &quot;npm run i18n &amp;&amp; ng build -c qatest&quot;,
      &quot;build:preprd&quot;: &quot;npm run i18n &amp;&amp; ng build -c preprd&quot;,
      &quot;build:prd&quot;: &quot;npm run i18n &amp;&amp; ng build -c prd&quot;,
      &quot;pree2emom&quot;: &quot;tsc&quot;,
      &quot;e2e&quot;: &quot;protractor dist/out-tsc/e2e/cucumberconfig.js $USER $PASS&quot;,
  
  .
  .
  .
  }
  </code></pre>
  <p>And i write on the console :</p>
  <pre><code>npm run e2e $USER='--params.login.user=User01'  $PASS='--params.login.password=Pass01'
  </code></pre>
  <p>And this is the error :</p>
  <pre><code>&gt; fdr-ui@2.2.1 e2e C:\Users\cpaez\Documents\Automation\Automation\fdr-ui
  &gt; protractor dist/out-tsc/e2e/cucumberconfig.js $USER $PASS &quot;=--params.login.user=User01&quot; &quot;=--params.login.password=Pass01&quot;   
  
  Usage: protractor [configFile] [options]
  configFile defaults to protractor.conf.js
  The [options] object will override values from the config file.
  See the reference config for a full list of options.
  
  Opciones:
    --help                                 Print Protractor help menu   [booleano]
    --version                              Print Protractor version     [booleano]
    --browser, --capabilities.browserName  Browsername, e.g. chrome or firefox
    --seleniumAddress                      A running selenium address to use
    --seleniumSessionId                    Attaching an existing session id
    --seleniumServerJar                    Location of the standalone selenium jar
                                           file
    --seleniumPort                         Optional port for the selenium
                                           standalone server
    --baseUrl                              URL to prepend to all relative paths
    --rootElement                          Element housing ng-app, if not html or
                                           body
    --specs                                Comma-separated list of files to test
    --exclude                              Comma-separated list of files to
                                           exclude
    --verbose                              Print full spec names
    --stackTrace                           Print stack trace on error
    --params                               Param object to be passed to the tests
    --framework                            Test framework to use: jasmine, mocha,
                                           or custom
    --resultJsonOutputFile                 Path to save JSON test result
    --troubleshoot                         Turn on troubleshooting output
    --debuggerServerPort                   Start a debugger server at specified
                                           port instead of repl
    --disableChecks                        Disable cli checks
    --logLevel                             Define Protractor log level [ERROR,
                                           WARN, INFO, DEBUG]
    --explorer, --elementExplorer          Interactively test Protractor commands
  
  Error: more than one config file specified
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! fdr-ui@2.2.1 e2e: `protractor dist/out-tsc/e2e/cucumberconfig.js $USER $PASS &quot;=--params.login.user=User01&quot; &quot;=--params.login.password=Pass01&quot;`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the fdr-mom-ui@2.2.1 e2e script.
  </code></pre>
  <p>Because i want to use the param in a function like this :</p>
  <pre><code>BeforeAll(async function ()
      await browser.get('https://web/#login/');
      await browser.sleep(10000)
      await log.email.sendKeys(browser.params.login.user);
      await log.pass.sendKeys(browser.params.login.password);
      await log.go.click();
      await browser.sleep(20000);
  });
  </code></pre>
  <p>Thank you in advance</p>