The eval feature found in many modern scripting languages is noticeably absent from Applescript. It has the do script command, but because of Applescript’s screwy (to me) scoping, you can’t call user defined functions from within the do script string.
Unless you go to an Applescript forum and find people smarter than you.
Update
If the link above doesn’t work, this one should.