GoToObject does not OPEN a popover, it will just highlight the popover button.
Instead of naming the popover button object, name the title inside the popover instead. Then use GoToObject to go to the title.
Also, use your script debugger as well, as it helps see in the trigger process where things don't work per your expectation.
If I understand correctly, you want the popover to remain open if some condition is met / not met. If so, then it's easier to force it to remain open, instead of opening it again.
You can use this script (fragment) as OnObjectExit script for the popup panel, not the button:
If [ MyTable::myField = "False" // or some other expression ]
Exit Script [ Result: False ]
Go to Object: Opens the popover, smoothly - provided that the popover (no button) has an associated name object.
thanks Mike, thanks erolst,... I'll prove it.