Automatic SMS sending triggered by an external command

If all the logic/detection happens on the PC, the question can be reduced to “How do I make a Mikrotik router send a SMS from a PC?”

Maybe SSH:
http://forum.mikrotik.com/t/send-sms-from-different-router/148712/1

Or REST API:
http://forum.mikrotik.com/t/rest-api-send-sms/156178/1

Both threads are a little old so it has to be checked if the solutions proposed there are still valid with RoS 7.x, of course, but they should be anyway a start.