I got it!! Thanks for everyones input. Lonkero was on the right track, with the COMMAND.COM and CMD.EXE. Here's the line that works!!

code:
 SHELL "CMD.EXE /E:1024 /C DIR $DIRLOC /AD /B /N  > $DIRLOC\HOMES.TXT"