Based on simple template files, this perl script creates small scripts that can be used as a starting point for scripting. Example template files are included for MEL and perl scripts and for the license. Of course, you can make new templates. Just open an existing one and start editing. New: The melUI template has been completely reworked and now provides easy creation of more complex UI scripts.
Type mkScript.pl -help to get more information about the usage.
P.S. you need perl installed on your system. Take a look at the free perl distribution ActivePerl from ActiveState.