Try this script column-custom-text-and-regexp.
It stores config as JSON in a variable. If you can open the dialog add a couple of columns and apply the changes. Then your JScript supports the JSON command and the issue is with what you are passing to that command.