Making a dialog box popup with options for the user

Hi! I’m trying to make a script that pops up a dialog box that lets the user chose from 3 options (plus cancel). Anyone know how to set that up? how does the user’s choice get passed back into the script? What command would I use?


Edit: Nevermind! I found it: