Extruding the Profile Curves

When you modeled the block you may have selected all the objects and then extruded them. This is how you will do it in the commandscript too.

Add these lines to the commandscript:
! selall
extrude
Cap=yes
10

Your script should now read:
! rectangle
0
10,15
! Circle
0
d
2
Lastcreated
move
0
5,7.5
! selall
extrude
Cap=yes
10
enter

Test the command script by highlighting and copying the text from Notepad, activate top view and click the commandpaste icon. This should create the manifoldblock but leave the curves that created it highlighted . See image below. Select all and then delete to clear the model.