title: object vs string output
body: <p>Why is it when I run this command in powershell:</p>
  
  <pre><code> $output = (svn stat) -match '^\?' # which $output is an [object] in this case.
  </code></pre>
  
  <p>I get this output in the PowerGUI Script Editor Console when viewing the variable $output:</p>
  
  <pre><code>?       Projects\TestProject\Thisisatest.txt
  ?       Projects\TestProject\Thisisatest - Copy.txt
  </code></pre>
  
  <p>but when I run this command:</p>
  
  <pre><code>[string] $output = (svn stat) -match '^\?'
  </code></pre>
  
  <p>I get these results:</p>
  
  <pre><code>?       Projects\TestProject\Thisisatest.txt ?       Projects\TestProject\Thisisatest - Copy.txt
  </code></pre>
  
  <p>It seems when using [string] it does some type of encoding where it takes away newlines and I'm not sure why?</p>
  
  <p><strong>UPDATED</strong>
  user978511 here is the the small example code and output</p>
  
  <pre><code>Clear-Host
  Set-Location "C:\svn\Development\Projects\TestProjects\build"
  $output = (svn stat) -match '^\?'
  '$output results'
  $output
  
  '$output2 results'
  [string] $output2 = (svn stat) -match '^\?'
  $output2
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>$output results
  ?       Projects\TestProject\Thisisatest.txt
  ?       Projects\TestProject\Thisisatest - Copy.txt
  $output2 results
  ?       Projects\TestProject\Thisisatest.txt ?       Projects\TestProject\Thisisatest - Copy.txt
  </code></pre>
  
  <p>Thanks for anyone that can help.</p>