title: How to use output file in another powershell command?
body: <p>I'm using auto-editor first to cut out motionless parts, then Mp4Box to add my intro.</p>
  <p>I can't figure out how to automatically use the output from auto-editor into Mp4Box.</p>
  <p>This is what I have so far.</p>
  <pre><code>Get-ChildItem -Filter *.mp4 | ForEach -Process {mp4box -add c:\intro.mp4 -cat $_ -new $a($_.BaseName + '.mp4') -force-cat &amp;&amp; del $_ &amp;&amp; auto-editor $a --edit_based_on motion --motion_threshold 0.000001% --no_open}
  </code></pre>
  <p>I tried adding $a to make the output into a variable but that doesn't work. I have the script reversed for testing purposes as Mp4Box is a lot faster than auto-editor.</p>