From server for example you can send a ExSendUIEvent packet with your custom params and parse it from the interface (check the classes that implement EV_AITimer i think)
From client you have many options, easiest one is RequestBypassToServer(String command)
(There are probably much better methods)