Programmatic modeling by script?

 From:  chippwalters
7176.1 
Is it possible to do all this in one script?

1. create a cube of set dims. (say 100mm x 130mm x200mm)
2. Fillet the top of it with a suitable radius (15mm)
3. generate a smaller cube which intersects the original cube and then boolean delete it from the original cube.
4. assign a name to the newly formed object? (Fred)
5. create 5 more like this.
6. Answer "Done!"

IOW, can one write a program which generates unique MoI model scripts which then can be executed in MoI to generate finished models?

Also, is there a plugin with a getfile requestor which can run external scripts?

TIA!

EDITED: 13 Jan 2015 by CHIPPWALTERS