How to create your own ScriptGenerator

Any answer to this question?