Shell requires a single string argument. Many of the examples you posted define multiple arguments. Please try the following, which is a strongly recommended method for using Shell/Run:
 Code:
$Cmd = '%COMSPEC% /c'
$Cmd = $Cmd + ' "\\yuponas\ezaudit\ezstart.exe" /auto'
$Cmd = $Cmd + ' >c:\temp\result.log 2>c:\temp\error.log'
'About to run ' $Cmd ?
Shell $Cmd

  • The double quotes in line 2 are not required unless there are spaces in your command path - having them there will not hurt.
  • The redirects in line 3 should be adjusted to reference a writable location on the client system. Any output and errors from the EZStart.exe will be written to the logs, so you don't have to be an Evelyn Wood graduate. ;\)
  • Line 4 displays the command before it is run - this can later be commented out, but it gives you a chance during development to verify that the command was constructed properly.
  • Shell can be replaced with Run without consequence, as long as you understand the difference in execution method. You will NOT be able to get entirely accurate results with the ERROR macros with Run, as they will only report a failure to locate or start the defined command. They will not report the result of its execution.
  • Note the use of leading spaces as the cmd string is built!

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