Thanks! But unfortunately two applications can have the same process name -- even if they have a different path. For example, if I make two copies of a web browser, or text editor. Even if I rename them to Firefox1.app & Firefox2.app, they'll still both have the process name "firefox"
Unless there is a convenient way to change an application's process name (chatgpt's answers don't give me great confidence), this is the only obvious way to satisfy my use-case. (Otherwise, the wrong instance of an app may get hidden)