Switch to window title takes long

This is directly related to the following already resolved thread, but in my case it’s a lot worse - 120 seconds each time

Hi, I have tried many things to be able to switch to a window with a certain title and nothing works except one thing.

I have tried all solutions proposed on this page (and others), and the only one that …kind of works is

Windows.switchToWindowTitle()

But this process ALWAYS goes trough the full 120 seconds to find it.

Before it switches, I am unable to tell it to switch using a title or a handle
I am unable to get any handle and it won’t find the title
After 120 seconds when it switches, I am able to get its title and handle…

I have not found a way to override the 120 seconds or any way to make this work otherwise

It is an HTA app that closes itself to open another HTA one.