title: Anonymous function in Nashorn
body: <p>Let's say have file like this</p>
  
  <pre><code>(function () {
      function change() {
          print('test');
      }
      function test() {
          return 'Testing';
      }
  })();
  </code></pre>
  
  <p>How to pass argument to this function using nashorn? I don't want run it via terminal, I have to create method that takes String as argument and process it with js code. </p>