You can set the port, user passwordfile options as environment variablex using export command.
e.g. set the following in the file and the subsequent commands will use these options:
export AS_ADMIN_USER=admin
export AS_ADMIN_PORT=4848
export AS_ADMIN_PASSWORDFILE=/user/home/passwordfile.txt
[Message sent by forum member 'janey' (janey)]
http://forums.java.net/jive/thread.jspa?messageID=358317