title: use admin is not working in MongoDB
body: <p>I have to pass parameter from a shell script to mongo javascript</p>
  
  <p>So I am trying like:</p>
  
  <pre><code>mongo --eval "var ADMIN_USER_NAME='$ADMIN_NAME', ADMIN_USER_PASSWORD='$ADMIN_PASSWORD'" insertusers.js
  </code></pre>
  
  <p>and <code>insertusers.js</code> contains:</p>
  
  <pre><code>cat insertusers.js
  
  use admin
  
  db.addUser( { user: ADMIN_USER_NAME,
            pwd: ADMIN_USER_PASSWORD,
            roles: [ "userAdminAnyDatabase" ] } )
  </code></pre>
  
  <p>However I am getting </p>
  
  <pre><code>mongo --eval "var ADMIN_USER_NAME='$ADMIN_NAME', ADMIN_USER_PASSWORD='$ADMIN_PASSWORD'"     insertusers.js
  MongoDB shell version: 2.4.9
  connecting to: test
  Fri Apr 11 21:30:34.791 SyntaxError: Unexpected identifier at insertusers.js:5
  failed to load: insertusers.js
  </code></pre>
  
  <p>I am not understanding why it is failing. Same thing can be run from javascript schell and that works.</p>
  
  <p>Whenever it is hitting <code>use admin</code> line, it is showing <code>SyntaxError: Unexpected identifier</code></p>