Documentation on the scripting in NV2 has not been released yet. To activate a script you would right mouse click Tools > Script Evaluate in your application database.

Once the documentation for scripting is released you will be able to write your own scripts in NV2. Currently, I do not know when the documentatin will be released.

A good primer would be to study the Tcl/TK scripting language that you can download from http://www.activestate.com. Search for TCL/TK and install. This ditribution comes with a help manual plus examples to get started. It is a good primer for scripting in NV2.