See your comment, guessing you've found success. Here is the answer for future readers in case the link I've quoted goes down. Basically we are assigning the start-process command to a variable and throwing the -passthru
tag so we can poll for the .exitcode
later.
$A = Start-Process -FilePath .\my-app\my-fle.bat -Wait -passthru
$A.ExitCode