title: Problems getting correct output in Powershell
body: <p>I'm trying a to make this PowerShell script that would ask for the user to input a service name, run through <code>Get-Service</code>, and show the result to the user.</p>
  
  <p>For example, if the user was to enter <code>vmtools</code> it would show:</p>
  
  <pre><code>Status      Name      DisplayName
  ------      ----      -----------
  Running     vmtools   VMware Tools
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>Write-host "Enter Service name"
  $ServiceName = read-host
  $Result = get-service $ServiceName
  Write-Output "$Result" 
  </code></pre>
  
  <p>However, it only outputs: <code>System.ServiceProcess.ServiceController</code></p>