There’s a better way to approach this, using a previously-undocumented feature of Eggplant. The way this works is that instead of using the “runscript” command to run Eggplant in command line mode, you will launch the full GUI version of Eggplant.
When you launch Eggplant from the command line in GUI mode this way, there are a different set of parameters that you can pass to the application. The -RunOnLaunch parameter lets you tell Eggplant to run a script automatically when it starts up. The -QuitAfterRun option tells Eggplant to quit after it finishes running the script. By using both of these options you can achieve similar functionality to using the runscript command, but with Eggplant running from the command line in full GUI mode.
So, instead of this (assuming Eggplant is installed in /Applications):
you could write:
/Applications/Eggplant.app/Contents/MacOS/Eggplant -RunOnLaunch /path/to/my.suite/Scripts/myScript.script -QuitAfterRun yes
There are a couple of other options that may be useful. The -ReopenDocuments and -RestoreConnection options can be used to override Eggplant’s usual startup behavior (as set on the General Preferences pane) as to whether it will reopen previously open documents and/or connections. Just follow each of those options with “yes” or “no” (you may want to specify “no” for both of these when running in this way).
NOTE: The -RunOnLaunch and -QuitAfterRun options are available only in Eggplant FT, not Eggplant SE.