Plugins in PCBNEW?

They can also be node-js scripts (example) .

As far as i can tell they can use any scripting language as long as the interpreter is installed on the system. (The first argument tells the bom wizard what interpreter to run for the script given in the second argument.)