How to create a dxf to pdf conversion utility?

Hi,

I would like to batch convert a dxf drawing to pdf format. I guess to create script file (.scr) could be a start, but when I have a working .scr that I can successfully run interactively I would like to build a utility dxf2pdf so that  I can run:

dxf2pdf a.dxf a.pdf

Do you know if that would be possible?

Br

Tomas