How to write a script format