I have found this works 100% of the time. It should work in theory for any program.
DIM $sLocation = 'taskmgr';
DIM $sCmmd = 'cmd'
Send("#r");Select the shortcut for Run Windows
WinWaitActive("Run"); Wait till run window is active
ControlSetText("Run", "", "[CLASS:Edit; INSTANCE:1]",$sLocation);
ControlClick("Run","","[TEXT:OK]","primary");Select Ok
WinWaitActive("Task Manager");
Send("!f");Select File
Send("n");Select new task
WinWaitActive("Create new task");
Send( $sCmmd)
AutoItSetOption ( "SendKeyDelay",5);
AutoItSetOption ( "SendKeyDownDelay",5);
Send( '{TAB}')
AutoItSetOption ( "SendKeyDelay",5);
AutoItSetOption ( "SendKeyDownDelay",5);
Send( '{SPACE}')
AutoItSetOption ( "SendKeyDelay",0);
AutoItSetOption ( "SendKeyDownDelay",0);
ControlClick("Create new task","","[TEXT:OK]","primary");Select Ok
WinClose("Task Manager");
WinWaitActive("Administrator");