Indeed Shell or Run
Run start the program and continues with the script
Shell will wait for the program to finish and after that continue the script
.exe --> Shell '"\\server\path to\pro gram.exe" /switch1'
.bat --> Shell '"%ComSpec%" /c "\\server\path to\My Batch.bat"'
.msi --> Shell 'msiexec /i "\server\path to\pro duct.msi"'
.reg --> Shell 'regedit /c "\\saerver\path to\keys.reg"'
.reg --> I would try to use WriteValue()