It is possible to run an ems script using
tibemsadmin -server tcp://localhost:7222 -user <username> -password <password> -script <file>
however, this of course makes your password visible in ps, top, etc, and also in any shell history. Is it possible to run a tibco script and be prompted for the password? Just omiting the -password flag results in "invalid user or password" user.