Universal Control Toggle On/Off

Has anyone been able to create a macro to toggle Universal Control on and off?

It is a pain to go to system settings, displays, advanced, etc. every time to toggle it on or off.

I have to do it whenever I am trying to go back and forth between controlling a windows machine with synergy and controlling a Mac mini or iPad with universal control.