title: Getting information from inner pipeline in cmdlets
body: <p>I am trying to create a nested pipeline. Now the cmdlet I am running in this nested pipeline needs to check that if it is running from a nested pipeline or not. It needs to behave a little differently when run from a nested pipeline.</p>
  
  <p>Can anyone help how to determine if the cmdlet is run from a nested pipeline?</p>
  
  <p>I use the following code to create the nested pipeline: </p>
  
  <pre><code>Pipeline pipeline = Runspace.DefaultRunspace.CreateNestedPipeline("cmdletName","true")
  </code></pre>