in reply to Win32::OLE from Task Scheduler

Can anyone think what difference it makes running the script via command line vs. Task Scheduler?

Permissions

The event log will have the relevant error message