Close Assignment popup window via script when not needed

I know you can close normal popup windows with by opening a socket and sending the “close popup” command.

I was trying to do something similar with an assignment window. I have an Assignment popup that comes up to ask the operator a question. Sometime the issue is self resolved (via the attached machine) and does not require the operator to answer the questions.
Is there a way to cancel the questions with a script command?
The close popup seems to just stop my program rather than just closing the assignment window.

I think the back-end script assignment is: request_boolean_from_primary_client()