You're not one having problem with ExtendScript opening each time you try to do something targeted to Photoshop:
https://www.ps-scripts.com/viewtopic.php?f=66&t=24374
I have no idea why it happens, maybe some thought come to me when I'm on other computer shortly.
For now I only know that when you open properties of a File you can choose that .jsx files will be executed by Photoshop (no matter there can be not #target photoshop in the head of code) untill you change this behaviour back. They should have the same icon what .psd file but link to Photoshop instead of ExtendScript. Try it and say what was the effect...