Problems using BringBrowserToForeground

Guys, I use UiVision on several Chome profiles.
It turns out that I was having problems with ‘lost contac site’ and the macro was stuck on commands like Store, Click or Refresh. I went looking for alternatives and found BringBrowserToForeground.

e-MEC

In theory, it should bring the window forward, but it’s not happening.
I’m using the code:

 {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_F5}",
      "Value": "",
      "Description": ""
    }

however, BringBrowserToForeground is not bringing the window to the front and F5 is being executed in the window that is open (the one that I don’t want to update).

Does anyone know how to resolve this?
If I test with Chrome and a folder or another program, BringBrowserToForeground works fine, now with the Chrome and Edge profiles I’m not having success, just a problem.

You say it works with Chrome, but not with Chrome profiles? I am not sure I understand the difference here.