You can load the DLL from file. You can free library.

The System.LoadLibrary(path_to_dll_file) function maps the specified executable module into the address space of the calling process. Before unmapping (and after mapping) a library module, the system enables the DLL to detach from the process by calling the DLL's DllEntryPoint function.

The System.FreeLibrary(id_library) function decrements the reference count of the loaded dynamic-link library (DLL) module.

Here's an example that loads the library:
// JScript syntax
var id_lib = System.LoadLibrary("C:\\your.dll");

// If You to make the plugin:
// Plugins.ConnectPluginsLibrary(id_lib);

// The callback function
function EventFinalize(code)
{
  System.FreeLibrary(id_lib);
};

'VBScript syntax
id_lib = System.LoadLibrary("C:\your.dll")

'If You makes the plugin:
'Plugins.ConnectPluginsLibrary(id_lib)

'The callback function
Function EventFinalize(code)
  System.FreeLibrary(id_lib)
End Function
content
The advanced scripting host. It is not wscript.exe!
JScript and VBScript are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.