Your best bet is to make a button parameter of type "Prompt Button". This will cause a confirmation prompt before the task is executed.
You can further customize the prompt by specifying a "configuration attribute" called w.changeprompt
Also of interest, you can add w.changeprompt to a number of parameters to force a confirmation before changing a value... but for what you're talking about, a "button-prompt" parameter is the correct type.
<abs contexttype="opengear">
<meta>
<params>
<param access="1" constrainttype="INT_CHOICE" name="Destroy Everything" oid="Destroy_Everything" precision="0" type="INT32" value="1" widget="button-prompt">
<config key="w.changeprompt">Do you want to reset everything?</config>
<constraint key="0">Reset World</constraint>
<constraint key="1">Reset World</constraint>
</param>
</params>
</meta>
<param expand="true" height="104" left="17" oid="Destroy_Everything" style="style:toggleButton;" top="17" width="165">
<task tasktype="ogscript">ogscript.debug("RUN SCRIPT!");</task>
</param>
</abs>#DashBoard