Use the ModScripter. I am not certain if it is already a standard preset in 14.0.20 but Arne posted it here in case it is not yet included:
Personally I rather don’t like this idea. It would mean to define certain midi parameters that ought to not go to the instrument but only to the modulator. I find adding a midi sidechain much more elegant for this. Also, midi sidechaining allows to address modulators on audio tracks.
So, above script needs a midi sidechain track.
Trigger is basically Note On and already available in the ModScripter. So is velocity. Gate is not a midi parameter, ie. I don’t understand what you mean with Gate. Maybe Note Off?
BTW - if you want to midi control the six knobs from the ADSR script you can use the Generic Purpose Controller 1-6 for this task.

