Hi Mayank,
You can use Utility - Environment (Read Memory Stats) action to get PID, process name, working set, virtual memory. You could use this information in an Attach action by passing in the PID,process name and Window Title. PID and process name is what you had retrieved earlier. Window Title is the one that you want to attach to assuming that this information is known depending on the application being automated.
This attach action will have to be done in a loop for each of the pid/process pair that you retrieved. If the attach is successful, you have found the right instance. If not, proceed to the next item in the loop.
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------