Selecting settings for multiple applications Qt

Hi all.
I have in one snap package two options for using libraries for the kernel of the program.
In snapcraft.yaml has

BSP095launcherCoreSimulation:
        command: bin/run.sh $SNAP/bin/start_CORE_simulation.sh
        plugs: ['home', 'x11', 'opengl', 'gsettings', 'raw-usb', 'serial-port', 'network']
#        environment:
#            LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/Simulation:$LD_LIBRARY_PATH
BSP095launcherCore:
        command: bin/run.sh $SNAP/bin/start_CORE.sh
        plugs: ['home', 'x11', 'opengl', 'gsettings', 'raw-usb', 'serial-port', 'network']
#        environment:
#            LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/CommProtV200:$LD_LIBRARY_PATH

This means that when I run a single script, I use libraries from the first directory.
And if another script then the library from the second directory.
It is very important to divide.

Now the question is, how correctly to set this test in the run.sh startup script?
I do not know how to tell the script on which parameter to determine the difference in the startup.

Thx for help.