Sure, it is the same as this gcode:
- M280 S<mode> - Set ditto printing mode. mode: 0 = off, 1 = 1 extra extruder, 2 = 2 extra extruder, 3 = 3 extra extruders
M280 S1 ; Turn on
M280 S0 ; Turn off
You can make gcode script to set it on and of in printer configuration. Then it appears in the drop down for commands in manual control and console. Or just add it to gcode or send it over console.