Are you using "asadmin"? Can you paste your script in this forum?
Also, another thing you may want to try is "asadmin mutlimode --file <file>" where file contains the commands.
[Message sent by forum member 'janey' (janey)]
http://forums.java.net/jive/thread.jspa?messageID=206261