Application.doScript appears, at first glance, to be a possibility. From the documentation (for InDesign CS2, but I'd imagine Photoshop to be similar):
Runs a script. The script can be either a file or a string.
Hope that helps.