title: Print a variable on Powershell
body: <p>I need print on Powershell a line comand through a variable , I called $em_result, for example, em_result=20, Thanks.</p>
  
  <pre><code>$em_result = ´gc C:\Users\mtmachadost\Desktop\Test\logError.txt | ?{$_ -match 'cajica11'} | %{($_ -split "\s+")[3]} |  Measure -Sum | Select -Exp Sum'´
  Write-Host"$em_result"
  </code></pre>