I'm new to Power Automate Desktop. I tried using it to automate a sequence of commands I always enter into a Windows Terminal. However, after recording the steps I took, it failed to run later when circumstances had changed. Here's the step where it is failing:

This step is looking for a window in Windows Terminal with the text, "PW [main] - PowerShell 7.3 (16868)". There are several problems here.
- I am NOT always in a folder named PW
- Over time I'll update PowerShell to something newer that version 7.3
- This only works if on on a Git branch named "main"
- This assumes that the process ID is 16868
Any of these can and will change when I go to different projects, folders, branches and most important, process ID. So, the logical thing for me to do is at least change the string to simply "PowerShell". Only Power Automate Desktop will NOT let me edit anything.
Why the heck not?????????????????????????????????????????????