You have clearly ignored the information that I have mentioned to you.
This Forum has a sticky thread about the fact that Windows GUI does by default close the terminal that it did open for running a CLI app the moment the app ends. The natural solution (to me) is to not let the GUI to rule.