code: public Object invokeMethod(Object o, String name, Object... args) throws ScriptException,
      NoSuchMethodException {
      Invocable inv = (Invocable) engine;
      return inv.invokeMethod(o, name, args);
    }
docs: <p> Calls a method on a script object compiled during a previous script execution, which is retained in the state
  of the ScriptEngine. </p>
  
  @param o    If the procedure is a member of a class defined in the script and o is an instance of that class
  returned by a previous execution or invocation, the named method is called through that instance.
  @param name The name of the procedure to be called.
  @param args Arguments to pass to the procedure. The rules for converting the arguments to scripting variables are
  implementation-specific.
  @return The value returned by the procedure. The rules for converting the scripting variable returned by the
  script
  method to a Java Object are implementation-specific.
  @throws javax.script.ScriptException       Something went wrong
  @throws NoSuchMethodException Method did not exist