Add API for invoking a script command for use by other plugins.