'How can i identify different terminal instances in VsCode

I am using VsCode Remote with Linux, and when starting a VsCode integrated terminal in the IDE, I need to run some scripts in the remote server. I would therefore like to identify "which" of my integrated terminals is calling the script. Is there any way to identify the concrete terminal instance from the script in the remote machine? (For example, environment variable containing the name of the terminal, etc...)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source