This is a quick note about how to enable a PlugIn by script

var pluginArr = ['com.sn_glidequery'];
var pluginMgr= new GlideMultiPluginManagerWorker();
pluginMgr.setPluginIds(pluginArr );
pluginMgr.setProgressName("Plugin Installer");
pluginMgr.setBackground(true);
pluginMgr.start();

Reference

  1. Ashby, NOW community - Activate plugin via script / automatically, accessed 2020 06 10