title: Indent output from private functions in Powershell
body: <p>I have a bunch of functions that I call that produce output that is displayed to the console. Functions might look something like the following:</p>
  
  <pre><code>exec { &amp; .\xunit.console.clr4 tests.xunit }
  
  #or
  
  exec { &amp; .\nuget.exe pack $source_dir\ZocMonLib\NuSpec\ZocMon.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
  </code></pre>
  
  <p>Now I know I could do something like <a href="https://stackoverflow.com/questions/6532324/powershell-indentation">powershell indentation</a> but that only works if I control the output. </p>
  
  <p>How do I do the indenting of output for these private functions?</p>