That works for an app, but not for an exe. Any attempt to launch a dialog (whether it's one of the built-in dialogs or a dialog defined in a resource) from an .EXE results in a KERN-EXEC 3.
I know executables don't have the application framework, but maybe it's possible to create a CEikonEnv in an executable. Any pointers?
If no other approach could not be found here is one workaround. Create a simple application and sent command parameters there from the exe. Inside application interpret parameters and display correspond dialog, and after this exit.
If fastness is the issue, the application is able to hide background.
In my oppinion exe's should not have any user interface, instead there should be this kind of clinets to display UI.