<@UHWHXFAFK> I had to do the same thing and found ...
# suitescript
p
@SMNCP I had to do the same thing and found this article that walks you through what you have to do to get this to work (if I'm understanding your request correctly). https://www.abaci-us.com/suitescript-2-0-dialog-confirm/