I'm trying to write a powershell tool control script that calls other ".EXE" programs using the ampersand operator. Example:
$cmd = ".\buffalo_wing.exe"
& $cmd "--really_hot" "--extra_spicy"
# ok now my command has failed by returning non-zero value...
# but powershell keeps on going like the energizer bunny..
I tried setting:
$ErrorActionPreference="Stop"
But to no avail.