The text below is part of a script I have written. I am haveing one small problem with it. The shell command line isn't working correctly. When the script runs, it doesn't like the /N switch in the DIR command. But if I go to a command prompt and type the same exact command, it works fine!! Can anyone help? Thanks!!

code:
 
$DIRLOC=E:\USERS


SHELL "COMMAND.COM /E:1024 /C DIR $DIRLOC /AD /B /N > $DIRLOC\HOMES.TXT"