You can do a lisp compile directly without invoking vl-ide. A quick google help from Autodesk
Examples
Assuming that yinyang.lsp resides in a directory that is in the AutoCAD support file search path, the following command compiles this program:
(vlisp-compile 'st "yinyang.lsp")
T
The output file is named yinyang.fas and resides in the same directory as the source file.
The following command compiles yinyang.lsp and names the output file GoodKarma.fas:
(vlisp-compile 'st "yinyang.lsp" "GoodKarma.fas")