I checked old use case for manual configuration of UDP Director with scripts.
Unfortunately, it's not officially supported ways. The only exception is using Cisco CX(former AS) professional service. In this case, CX team supports the scripting issue.