Passing arguments from scrip action to template

Hi all,

I’m dealing with scrip,different email will be sent to different users
according to the result output from my ‘scrip-action’. And, contents of
emails can be changed accordingly.
Is it possible to pass arguments from ‘scrip-action’ to the template?
Or, is it easier to send email inside ‘scrip-action’ part with all different
email cases, with blank template?