I know this function exists... cause I remember seeing it.. but looking at the function list twice, I missed it both times.
What's the function to check for a window (by name of window), and also conditionally pause the script until the window terminates?