Added scripting, conditional processing, passing parameters.
See the createOrAdd.ncc sample script and the output of running it.