Hi JP,

If it only fails on Windows 8.1, then it is very unlikely that it is caused
by your code or the script. IMO, it's a missing dependency or the OLE
initialization issue.

Friedrich