I believe the Send Event script step will do what you need.
Thanks, that worked! However, I realized I have an additional hurdle. First, the script I run is actually built in Filemaker. In other words, it doesn't exist until teh script is run and then I create it by sending a touch command through AppleScript and then echo the lines of the script through AppleScript.
Would you happen to be able to tell me how to create a file from Filemaker and, then, how to send echo commands to DOS to add lines to the script?
Just build your batch file commands in a text field and then export the field.
FYI, I had to use the Troi File Plugin to do this, as DOS expects straight old ASCII and Filemaker only outputs UTF files. Kind of a pain. Someone may have a work around, but that's what worked for me..
At the end of the command line that you execute through Send Event, specify ">>c:\someLocation\someFile.cmd".
The >> instructs Windows to append to the file you specify