"Activate specific window" function with window name just cycles through all windows

what exactly do you mean by second BTT action? (if you assign multiple actions to a trigger in BTT, BTT will execute them in sequence so that would explain your behavior)

I just tried your example, but it seems to work fine here.