ExecuteScriptEnhanced

// MAP 3/27/2009 // Make oTarget run sScript and then return execution to the calling script. // This function supports adding script parameters with // the AddScriptParameter* functions, as well as execution of conditional scripts. // If script execution fails for any reason, this returns -1 // If executing a non-conditional script, this returns 1 on successful execution. // If executing a conditional script, this returns the return value of the conditional. // If bClearParams is true, any script params previously added with AddScriptParameter* // will be removed. int ExecuteScriptEnhanced(string sScript, object oTarget, int bClearParams = TRUE);