Remote execution of a script trigged by Particle cloud event

This thread might help you: