Gain foreground on batch interruption

#1
I have a dialog-based plugin which can cause a batch file to be run (with Command()). When it interrupts execution (with GenerateConsoleCtrlEvent()) TCC steals the foreground. Is there a way my plugin can prevent that.