As I mentioned above the loop should be created using *bat file for windows and bash for linux,
The four files mentioned below are attached for download.
- processDataset.bat (Windows)
- processDataset.bash (Unix)
- resample_s2.xml
- resample_20m.properties
Also please take a look at this thread , Source of the thread
Focus at this post in the above thread, how to create the loop, Source of the post
With regarding to your *xml file, actually should be edited by adding up multi band math according to how many times you want the Beta value to be changed,