ChatGPt knows a lot about Directory Opus and scripting here.
The code here:
is in 99% written by ChatGPT. In the query I just underlined to create script for Directory Opus using Vbscript.
After creating script ChatGPT also gave step by step instruction of how to assign the script to button