This test works fine for me =>
var scriptType = Type.GetTypeFromCLSID(Guid.Parse("0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC"));
dynamic objScriptControl = Activator.CreateInstance(scriptType);
objScriptControl.Language = "vbscript";
string sScript = "function Myfunction()" + Environment.NewLine +
"Dim Text, Button, Title, Result" + Environment.NewLine +
"Text = \"Are you OK ?\"" + Environment.NewLine +
"Button = vbYesNoCancel+ vbQuestion" + Environment.NewLine +
"Title = \"Question\"" + Environment.NewLine +
"Result = MsgBox(Text, Button, Title) " + Environment.NewLine +
"end function" + Environment.NewLine;
objScriptControl.AddCode(sScript);
objScriptControl.Eval("Myfunction()");