Password portal immediate action

Client wants to deliver a code via TEXT message to a users phone.

problem is that by calling a method from a page invokes first a FIREGEN process and after that the real process is started that sends the  SMS.

This can take in worst case scenario 3 job server cycles which is too long!

Is there any way to maybe call a script directly from a web page that is executed immediately. (not by triggering an event)?

some sample code snippet would help :-)