Because VBScript and JScript do not have native include, although it is possible to implement include, it is not very convenient in DOpus, DOpus can join an object, such as Dopus.Library can include user-defined VBScript functions, classes and JScript objects therein, and can make two-way calls (Multiple engines, similar to *.wsf file), The functions, procedures, classes, objects, constants, and so on, you can use Dopus.Library.xxx customization in JScript (VBScript).
For example, I wrote a function with VBScript
Function IIf (ByVal Expression, ByVal TruePart, ByVal FalsePart)
If Expression then IIf = TruePart Else IIf = FalsePart
End Function
Then the libraries can be invoked in VBScript or JScript after introducing the Dopus
There is a dedicated thread about this topic, using Windows Script Components to get very near to what you describe. A search for WSC or "Script Components" should get you there.
You can load these Windows Script Components directly without registering them first.
Afaik and iirc you can mix code in these componentes as well, so basically, that's your *.wsf file.