Hello @Silvia-Crognale,
it all depends what you actually want to have and do but
I guess it could be done, but I assume not from npp natively.
You need to install scripting language plugins like python script, lua script, java script or even
nppexec could be used, but as said, it depends…
Cheers
Claudia