String callString = "calc.exe" // This assume the executable is available on the system path if ( TwoButtonDialog( "Launch Windows Calculator", "Asynchronous", "Synchronous" ) ) LaunchExternalProcessAsync( callString ) else LaunchExternalProcess( callString ) OKDialog( "The DM script continues" )