How to differentiate several exes of same application

I need to open and differentiate several executions of the same application(TOTVS), for now, I’m using an index inside selector on a attach window activity, but I’m having an issue. When I go to another window inside the app, the index changes. Is there any other way to do it?

Issue 2
Also, I can’t use any activity like type into and click inside TOTVS, UiPath just selects the whole application…

Regards,

Alamyr