title: create a txt file in PowerShell list of all running services
body: <p>I am trying to create a txt file in PowerShell that provides a list of services that are running.  This what I came up with but it keeps on giving me an error message that says its not valid.</p>
  <pre><code>Get-Service | Export-txt -path &quot;C:\Windows\Temp\services.txt&quot;
  
  Get-Service | where {$_.Status -eq &quot;Running&quot;} | Export-txt -path &quot;C:\Windows\Temp\services.txt&quot;
  </code></pre>