Hi, @Nige_S; good point, this could be problematic if one is using a single Mission Control Desktop Space. (I'm an oddball and use all 16.)
App windows open on other Desktop Space or app windows that are minimized are not brought up and, moreover, are not in the rotation when using the macro I shared.
You could move the subset of windows of interest to a separate Desktop Space and do just that without disrupting the other app windows.
Admittedly, Desktop Spaces are a double-edge sword, but since the majority of my work is now on a MacBook Pro, I'm all in. Maybe you've seen this: Desktop Spaces • Macros to Improve Navigation and Window Management