title: Powershell calling function from inside a function
body: <p>Hopefully someone can help me here, I'm simply trying to call a function from within a function.</p>
  
  <p>I've created a simple menu that asks for user input and based on the selected menu option it then runs another function that has a select which then calls other functions depending on the original menucode selected. </p>
  
  <p>In short I would to pass the custom objects from each function to the next without returning to the main script menu loop. I've googled and can't seem to find a clear answer and/or code example explaining how to do this.</p>
  
  <p>After Jaitsu comment below, I've removed a good portion of my code and have pasted the script so that you can clearly see my issue first hand. </p>
  
  <p>Jaitus mentioned use a echo which really is just an alias for write-output. I would like use output properties in other functions without returning to the main script loop. Is this even possible to do or do I need to leave the function to create a variable that then is used to pass to the next function script block ? </p>
  
  <p>Example Function A returns an object but the script never leaves a function before calling the next which looks for a return from the first script block.  </p>
  
  <p>Code and comments attached to further illustrate my dilemma, not even sure this is possible to do and if not, then any additional suggestions for how to to do my menu loop would be greatly appreciated.</p>
  
  <p><em><strong></em>* fixing code, and will post back to share when completed <em>*</em></strong>
        Thanks everyone for your input...</p>