It should possible to send an OSC command, e.g. of a Magic Sheet to a designated and configured ports. Some examples:
udp:8001:/opta/relay=1
tcp:4707:/opta/relay=0
It would helpful to it with magic sheet command buttons also with String execution in cue lists and macros.