How to calibrating images in batch-processing way?

Hi everyone,
As you can see the images are uncalibratedearly stage of eggs.tif (5.5 MB) , so I need to adjust it in three steps.
First coomand is make composite; And next step is auto adjust contrast of images, which have a fixed parameter “Enhance Contrast”, “saturated=0.35”. The last step is Stack to RGB . Here are my marcos,

run(“Make Composite”);
run(“Color Balance…”);
run(“Enhance Contrast”, “saturated=0.35”);
run(“Close”);
run(“Color Balance…”);
Stack.setChannel(2)
run(“Enhance Contrast”, “saturated=0.35”);
run(“Close”);
Stack.setChannel(3)
run(“Color Balance…”);
run(“Enhance Contrast”, “saturated=0.35”);
run(“Close”);
run(“Stack to RGB”);
run(“Save”);
close();

the problem is that the previous images never closed and I guess it should be selected first. If not closed, the existed images could influence the next images.But the Selectwindow() coomand is a liitle bit difficult to me. So what should I do to select the images or make it actived. Thanks a lot for your advices![late stage and unfertilized