Bring a specified window of an app to the front (if there are more than one window)

I think this macro should do the trick, or at least show you an example you can build on:

MACRO or PLUGIN: Open or Refresh a URL in a Tab (Safari & Chrome) by @DanThomas