When running Python 3.8.10 from the cmd with py or python, a new window is opened with the Python interpreter, and the same happens when running a script with python script.py. It didnt used to be like this, it used to excecute the code in the same window, I do not know what happened. Can Python be configured not to do so?
Update: Using Python's repair tool in administrator mode solved the problem.