Turning a Prefs command into a batch file

I have the following command as a toolbar button:

Prefs BACKUP=all TO "\HPSERVER\Documents\Bernard\Directory Opus%COMPUTERNAME% - Opus Config - {date|YYYYMMdd}-{time|HHmmss}"

How do I rewrite this as a batch file command?

I believe you would use DopusRT to do this.

Regards, AB