#3370# is switching code for sim1 and sim2. the adapter i am using only changes sim with a reboot. it ignores your script.
A bit more info would be helpful: your switching codes, providers, configs, ...
Your adapter will need to support the so called 007 mode, i.e. the switching needs to be executed by calling a number (like 001, **1, 11*, 1#, ...).
can i umount sim like just like sd card?
it will be considered as a reboot by adapter.
sim-switcher reactivate
sim-switcher reset
sudo killall csd