title: Returning values at program exit
body: <p>I am aware that you can pass parameters into a program's execution.</p>
  
  <p>i.e.:</p>
  
  <pre><code>myprogram.exe param1 param2 [...]
  </code></pre>
  
  <p>But if I wanted to retrieve several values on program exit (say I wanted to echo param1 and param2 back to the calling process), the only way I know of doing so would be to use an exit code (which would be impractical with larger/multiple parameters), or passing them via a temporary file.</p>
  
  <p>Is there anything analogous to retrieving multiple values on a program's exit, much like how you can pass multiple arguments on a program's start?</p>