MZ Plugin/JavaScript Switches

Hello, I have installed the "CGMZ_MenuCommandWindow" plugin, and in one of the custom Command I want to activate a Key Item that I have, I do not know how to activate a Switch with a JavaScript, someone can tell me?
Moved to: Plugin Support
The command to set a switch is:

$gameSwitches.setValue(5, true)

to set Switch 5 to ON.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-javascript-switches.153892/