Here I have a script with a doublet on which a similar window pops up:
I click "Run in terminal" and the terminal opens in the place where the script is running from:
But why the script itself does not start? What could I break and how to fix it? If you manually start the script in the same terminal, it will start without problems. I tried to install different terminals and everywhere the same result. With launch rights, too, everything is in order.

