@Kes
The variable is designed to be the troop number, not how many to do. Which I think is what you've done. So if you start with troop 73 and have switch 242 on then the next battle will be troop 74.
Other than that the script is not designed to start a battle. You still have to do that.
If variable 105 is set to 4, you manually start battle troop id #4, the next battle will be troop #5.
It's designed so that you could at each troop page specify a different troop number.
With sequential off, you could something like 16, 32, 8, 45
The switch to activate the script is used to intercept the victory sequence. So you have to start a battle with the switch on (or turn the switch on in the troop page) for the script to do anything.
When you are finished doing battles sequences, you have to turn switch 241 off. Otherwise it will continue the next battle. If sequential is off then it will repeat the last enemy troop indefinitely. If the sequential switch is on it will continue until it reaches the bottom of your troop list and probably crash is you have any that are empty.
So this script, as is, is mostly manually controlled. If it works for you I can see about putting in some automation. But I still would not make it start a battle automatically. To do so would put code in to enable that and you would still have to use a command to tell the script to start.
To have it set to start a battle as soon as switch 242 is on, means all the other switches and variable has to be set first. Regardless, I think its a waste of code when the editor can do it for you.
Plus this script gives the freedom to have random battles do sequential. You just have to have the switches and variable set on the troop page.
What battle script are you using? There may be some requirements for it as well.