Did you try Shane's example? None of your Shell statements employ the "%COMSPEC% /C" or the encapsulated quotes.

Two simple rules for Shell:
1. Build a $Cmd string so you can display it in a debug message before calling Shell $Cmd.
 Code:
$Cmd = '%COMSPEC% /c '
$Cmd = $Cmd + '"\\server\pcclient\win\pcclient.exe /silent"'
'About to run ' $Cmd ?
Shell $Cmd
More effort but easy to see problems and manage complex statements.
2. Use single quotes for Kix and double quotes for embedded commands. DOS likes double quotes.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D