This is probably the opposite of what people usually want to do.
Is it possible to write a piece of software that triggers Alexa?
Basically, like saying "Alexa, do something" to your Amazon Echo, but with code instead of talking. Perhaps by leveraging some Lambda function.