Understood!
You will need to check the plugin code to understand how the code works so you can use the script calls. When I have a little more time, I will try to explain better to you, because I believe it's complex.
I'm getting practice through learning to manually do a script call via your self switch plugin :D