My solution

After we reach 10 (which will be the 11th iteration), the batch will be run in every iteration step.
You should write something like this:
if (i % 10 == 0)  { }

In addition to 10 is a little bit low value is this case.