Controlling your Mac from your iPhone isn’texactly something new, but it’s been pretty limited so far.
Pretty much anything you could do on a Mac with AppleScript can be triggered using this method.
Head over to Lim’s site for the full guide.
How to Run Keyboard Maestro Macros Remotely| Sayz Lim