Can't capture exit codes on powershell.

Get help for specific problems
Posts: 9
Joined: 27 Oct 2020

Delcom126

I am using the command & $ffs $path$application$set1 with ffs being the executable and the rest parameters in Powershell. It works well, but I made many attempts to capture the exit code. Stackoverflow.com etc.
$Exit_Code = & $ffs $path$application$set1 being one of them. Has anyone done this?