private void RunScript(Point3d x, Point3d y, ref object A)
{
Rhino.NodeInCode.ComponentFunctionInfo cfi = Rhino.NodeInCode.Components.FindComponent("Line");
string[] warnings = null;
A = cfi.Evaluate(new object[]{x,y}, true, out warnings)[0];
if(warnings != null && warnings.Length > 0){
Array.ForEach(warnings ,w=>Print(w));
}
}
http://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_NodeInCode_ComponentFunctionInfo.htm
Thank you for adding this McNeel!
EDIT* Ok, better look Using the NodeInCode namespace