For those interested here's an example on how to call a script function with parameters:
using Microsoft.CSharp;using System.CodeDom;using System.CodeDom.Compiler;using System.Reflection; ... object[] fParameters = new object[1];int parameter_ = 5; fParameters[0] = (object)int;CompilerResults results = codeCompiler.CompileAssemblyFromFile(Compile_params, CS_ScriptFile); if (results.Errors.HasErrors) { for (int i = 0; i < results.Errors.Count; i++) { MessageBox.Show(results.Errors.ErrorText); } } object o = results.CompiledAssembly.CreateInstance("MissionScript"); Type t = o.GetType(); MethodInfo mi = t.GetMethod("Start"); mi.Invoke(o, fParameters);