How can I change dimensionstyle from a script (without using dialog form)?

I am passing a script to DraftSigh with hundreds of dimensions and lines,
and when I try to change dimension style with the command:
_dimensionstyle NameOfDimensioStyle
the dialog form appear blocking the script.

The script work in Autocad with command: dim restore NameOfDimensioStyle

Thank you.

Bye