Try running it without specifying %comspec%. Likely, the command interpreter is closing and returning control back to the script. Or...you can use Start /wait

Code:

$pgm = "%systemroot%\explorer.exe /E,/ROOT," + $DriveLetter + "\data\we\cssdata\logs"
shell "$pgm"