With one exception you don't need scripts to do this
You can use fade and pause cues targeting the cue list
e.g
To pause list, target Main Cue List from Pause cue
to duck 10dB, fade cue with RELATIVE FADE of -10dB targeting Main cue list
to bump 10dB, fade cue with RELATIVE FADE of +10dB targeting Main cue list
there is no resume cue so you can use a script cue to do this
tell front workspace
tell (cues of (first cue list whose q name is "Main Cue List") whose paused is true) to start
end tell
If you operating from a keyboard key [ will pause and ] will resume.
Mic