Choose series with bioformats in ImageJ macro

I am trying to loop over a folder in an ImageJ macro. The images are in a hyperstack and since they are quite big, I want to use a lower resolution (–> series 3) for the evaluation. However, I cannot automate the importing of a specific series, ImageJ always opens the highest resolution.

This is the code:

path ="//mypath/";
list = getFileList(path);

for (i = 0; i < lengthOf(list); i++) {
image = path + list[i];
run(“Bio-Formats Windowless Importer”, “open=” + image + " color_mode=Composite rois_import=[ROI manager] view=Hyperstack stack_order=XYCZT series_3");
name = File.nameWithoutExtension;
savename = path + name;

In my opinion adding “series_3” should do the trick, but it doesn’t. What is the reason for this and how can I fix it?
Thanks a lot!

Have you tried to use the macro recorder of ImageJ to get the correct command of the Bioformats import action to adapt it?

Sorry, I forgot to mention: The command was copied from the macro recorder, then I just added “Windowless Importer” and changed the name to the variable “image”.