This is functionally the same thing that I was doing by just slurping the entire file into the dynamically generated script, right?  I have an instinctual aversion to 'eval', though I recognize that in this case it's basically the same thing I was already doing.  Curious if there is a reason why you prefered this approach?