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:
Your script should now read:
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.