title: Consume output of a cmdlet into c# class
body: <p>Is there any way to consume the output of a cmdlet into c# code? </p>
  
  <p>I have searched the web, I have mostly found topics that help writing a cmdlet but could not find anything vice versa. </p>