I assume that maybe one of your "switches" takes an email address ? If so, make sure you double-up on your @ signs when running the program from inside the script, like:

myprog -a shawn@@kixtart.org

-Shawn