How to write a killer script