How to create script to reconnect and shutdown by task scheduler

I use DDE for comsuming data from data provider.

I need to implement the script to automatically reconnect and shutdown by task schedule in the period time.
ddeDicRe

Is it possible to use AmiBroker's OLE Automation Object Model ?

If applicable, I intend to set it as batch scheduler.

Pongthorn

That would only be possible if plugin specifically exposed such functionality via DataPluginCmd But DDE plugin does not expose it.