rotf...why didnt ya say so?
http://mtec89.cjb.net/scripts.html
click the Threat Level script link, on line 39 there is the write command