There are some reasons:
1. VBScript has not any structures, you need to use Class.
2. Using instanses of classes you need to use "Set" like this:
Set Script_Class = RunScript(args)
3. Your syntax is a VBA / VB.NET syntax and NOT a VBScript, e.g. instead of "Return ret" you need
RunScript = ret
and so long ...