Hello,
Welcome to Microsoft Q&A!
You could refer to the links:
Terminal window/tab is not closed when console application calls FreeConsole
Add support for start /B and FreeConsole
This issue was addressed. I suggest you could try to use Windows Terminal Preview v1.17.1023
. Download from Microsoft Store
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.