title: How to execute mongo commands through shell scripts? (mine does not work)
body: <p>I am trying to use scripts js in the mongo shell. I am reading a book on the topic. I have tried several options, such as opening the cmd at a specific place at my computer. 
  I found here the question "How to execute mongo commands through shell scripts?", but nothing seems to work for me. My mongo is working properly and I can enter mongo simply typing mongo at cmd. However, it cannot find the js files.
  I am using Windows; anything has an idea what may be happening under the hood?</p>
  
  <p>An example after: </p>
  
  <pre><code>mongo  demo.js
  
  2020-02-20T11:03:33.098-0300 E  -        [main] file [demo.js] doesn't exist
  2020-02-20T11:03:33.098-0300 F  -        [main] failed to load: demo.js
  2020-02-20T11:03:33.098-0300 E  -        [main] exiting with code -3
  </code></pre>