This should help you level up your BTN.
Fixed that for you, it will indeed help level up Botany. Levelling up BOT's however requires a whole new level of information that Wiki/GE just can't provide.
Now that making fun of pedastels is out of the way, onwards to your current script problem. I never found a good way to use windower scripts in a loop, personally I find it easier to use Spellcast.
<if spell="Bio*">
<command when="aftercast">wait 6;bio</command>
</if>
Then it's as simple as //reload spellcast to end it (you may get another spell go through due to aftercast, but it should stop there)