Runing native commands (executables) in PowerShell is much like running them
in DOS, type:
and get the output just as if you typed it in CMD.
As for your 3rd party tool, I can't test its exact parameters but the above
can be a candidate to explain how to invoke commands:
$cmdLine = "/all"
invoke-expression "$tool $cmdLine"
Then pipe to out-null
invoke-expression "$tool $cmdLine" | out-null
$cript Fanatic http://scriptolog.blogspot.com
> invoke-expression doesn't appear to do anything !? I've tried the
> command line in a dos prompt and it works fine.
> Any other ideas out there please?
> I've tried :
> invoke-expression -command $CmdLine
> invoke-expression -command $CmdLine | out-null
> Neither appear to even attempt to run the $CmdLine.
> Thanks Again.