Runing native commands (executables) in PowerShell is much like running them
in DOS, type:
ipconfig /all
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:
$tool="ipconfig.exe"
$cmdLine = "/all"
invoke-expression "$tool $cmdLine"
Then pipe to out-null
invoke-expression "$tool $cmdLine" | out-null
-----
Shay Levi
$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
> and
> invoke-expression -command $CmdLine | out-null
> Neither appear to even attempt to run the $CmdLine.
>
> Thanks Again.
> Russ