title: Specify PORT environment variable on Windows
body: <p>In my settings I run my server on port 4000. I want to run it now on port 5000 in another instance. I have read here:</p>
  
  <p><a href="https://medium.com/the-node-js-collection/making-your-node-js-work-everywhere-with-environment-variables-2da8cdf6e786" rel="nofollow noreferrer">https://medium.com/the-node-js-collection/making-your-node-js-work-everywhere-with-environment-variables-2da8cdf6e786</a></p>
  
  <p>that all you need to do is something like:</p>
  
  <pre><code>PORT=5000 node server.js
  </code></pre>
  
  <p>Now, this is what I have in my <code>package.json</code>:</p>
  
  <pre><code>"scripts": {
      "watch": "nodemon -e ts -w ./src -x npm run watch:serve",
      "watch2": "PORT=5000 yarn watch",
      "watch:serve": "ts-node --inspect src/index.ts",
  }
  </code></pre>
  
  <p>I useally run "yarn watch" and my server runs on port 4000. yarn watch2 should make it run on port 5000 but I get the following error: </p>
  
  <pre><code>"'PORT' is not recognized as an internal or external command"
  </code></pre>
  
  <p>I assume it is because I am working on Windows? </p>
  
  <p>What can I do to solve it?</p>