Well, I tried what you suggested, and it still returns with "The system cannot find the file specified."

I can run this command at the DOS prompt without any issues. What exactly does the /c parameter mean for %COMSPEC%?

I even tried it this way without luck (after mapping the Z: drive).
Code:
 $shellcmd='%COMPSEC% /c z:\showmbrs "kent\'+$group+'" >> "c:\'+$group+'.txt"' 




Thanks.