Let me understand this, you want to keep working on the very same script that is being processed locally?
If so that doesn't make any sense for me for the simple reason that Nuke is using that script, just render it on the terminal (shell) and work in a new version in Nuke.
Or open a second instance of Nuke with a new version of that script in there.
Having the render progress bar focusing Nuke at each new frame must be a pain, but at least you can render in the terminal as an option.