Adding vlan interfaces by range to a master interface by rest or script

first the rest API script at:
https://github.com/elico/routeros-create-vlans-range

and a simple script:

:local masterInerface "test";
:local defaultDisabled "yes";

:for LoopCount from=1000 to=1099 step=1 do={
	/interface/vlan/add interface=$masterInerface name="$masterInerface_vlan$LoopCount" vlan-id=$LoopCount disabled="$defaultDisabled";
}