Hi there,
It would be great if you can share more details regarding this issue and share the script if you have some. If you are planning to click the Ok button using Power automate you can follow the below thread for the steps to do it .
Populate text fields and click on links using JavaScript
Create a Power Automate desktop flow
https://learn.microsoft.com/en-us/power-automate/desktop-flows/create-flow
Power Automate for desktop prerequisites & limitations
https://learn.microsoft.com/en-us/power-automate/desktop-flows/setup
------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--