Execute commands with dlgchoose

How to execute usercommands defined in DO using dlgchoose?

I have UserCommand1 and UserCommand2, now I want to choose between these 2 commands using dlgchoose (or something like that which popups a confirmation window).

Example that's not working (doesn't find {$var}):

@set var = {dlgchoose|Choose:|Command1=UC_Command_1+Command2=UC_Command_2} {$var}

Try this:

@set var = {dlgchoose|Choose:|Command1=UC_Command_1+Command2=UC_Command_2} dopusrt /cmd {$var}

Yes yes yes! Thanks a lot.