You should correct your problem by making a template file.
Get a source file provided by Autodesk comapany.
And then excute after setting debugger with acad.exe.
If the command working properly, you can make template file.
Then, the template file will be set all properly, but setting debugger with acad.exe. I hope, helped.