title: How to pass a parameter to --world-parameters or npm run command to be consumed by scripts in package
body: <p>I know that this question could be a duplicate of many similar existing questions however, still want to ask more precisely for help in the scenario I want to understand:</p>
  
  <p>I am using <a href="https://github.com/rquellh/testcafe-cucumber" rel="nofollow noreferrer">this</a> repo in my example and I have following script block in my package.json</p>
  
  <p>I need to pass one parameter from the command line to identify the environment in which I wish to test, for example something like:</p>
  
  <pre><code>-- testEnv=staging
  </code></pre>
  
  <p>How can I update the following script blcok to accomodate this change.</p>
  
  <p>I have already tried to set different configurations for world parameter like this:</p>
  
  <pre><code> --world-parameters \"{\\\"environment\\\": \\\"Dev\\\"}\"
  </code></pre>
  
  <p>however it is now confusing to maintain various version of world parameter configs hence looking to use command line to send variable values through.</p>
  
  <pre><code>"scripts": {
               "test-chrome": "./node_modules/.bin/cucumber-js.cmd --tags @Run --format json:./testlab/support/reports/report.json",
  }
  </code></pre>