Telling sheets "OK"

I am trying to write a script for an app that uses sheets. At the end of the script a sheet comes down with a message and wants you to click “OK”. I cant continue on unless I do this but I can’t figure out how to tell the sheet dialog “OK”. I have tried all I know or could find on the net.

Please help.