How to use different terminals for different scripts in the same folder


I am developing two things simultaneously where one has a long runtime. In the meanwhile I would like to code on a different script, but when doing so both scripts try to run on the same terminal.

Is there a way to tell a script which terminal to execute in? Meaning that when I run a line it does not execute it in the already running terminal.

I could open a new vs code window, but that seems a bit silly.

Kind regards