Your still not creating an instance of anything.
I don't program in c#, but the concept is basically this.
//declare a variable of type ObjectObject ScriptInstance;//create an instance of a class defined in the "script"//MyClass is the name of an object defined in the script.ScriptInstance = CompiledAssembly.CreateInstance("MyClass");ScriptInstance.GetType.GetMethod("MyMethod").Invoke(null,null);
For this to work your script must define an class. Once you have an instance of that class, you can get its methods and invoke them.
class MyClass{ public MyMethod() { //more code here. } }
You don't need to find a path to the compiled assembly or anything like that since its already loaded into memmory, when it was compiled. This is because you told the compiler to do that. Params.GenerateInMemory = true;