The script fails to work in a wine environment under FreeBSD:

Is there anything can be done about it?
Imported libs:
msls31 (MS Line Services)
riched20 (MS RichEdit Control 2.0 (riched.dll)
riched30 (MS RichEdit Control 3.0 (riched.dll, msls31.dll)
richtx32 (MS Rich TextBox Control 6.0)
wsh56vb (MS Windows Script Host 5.6, VBScript only, no CScript)
wsh57 (MS Windows Script Host 5.7)
Or the list of files:
cscript.exe
jscript.dll
riched20.dll
scrrun.dll
vbscript.dll
wscript.dll