I would like to create a procedure that grabs a registry value from a managed pc, the teamviewer id, and then executes a program, in this case teamviewer, on the technician pc inserting the teamviewer id into the command.  

I understand how to grab the registry value and use it as a variable, but can that variable be used to execute a program on the technician pc? 

getvariable ("registry value", "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432node\TeamViewer\ClientID", "ID", )

To be executed on technician pc

teamviewer.exe -i "ID" --Password Myteamviewerpassword