title: How can I do an unbuffered / live replacement in Powershells's output?
body: <p>I am trying to use powershell to absolutify relative paths in my CMake build output like this:</p>
  <pre><code>PS (./cmake.cmd rebuild) -replace '^(\.\.\/)+','C:/my/absolut/path/prefix'
  </code></pre>
  <p>The cmake.cmd script is just a wrapper that eventually calls CMake with some options.
  The replacement itself works fine. However, the real build output appears only after the whole build process has been finished. Especially for a rebuild, this might take some time where there is not output on the console.</p>
  <p>Is there a way to do this replacement in an unbuffered way so that I can still see a &quot;live&quot; output on the console? Thanks!</p>