Dashboard popup function

Hello, every one!

I’m testing some of the URcaps samples,
I want to display a popup that can be selected when important functions such as turning off the power .
In other words, I would like to use a popup window with a Yes or No return that I can check once more.
For dashboard pop-up, only the pop-up function without the return value.
In this regard, I am wondering if I can use a popup window to receive a return,
Please advise if there is another solution.