Have wait-process-result save the exit-code in process-info since we cannot retrieve it again later.
Attach a file by drag & drop or click to upload