title: How to get a string instead of an array in PowerShell?
body: <p>I'm trying to do the following:</p>
  
  <pre><code>$files = Get-ChildItem c:\temp | Select-Object Name
  foreach ($i in $files) {
      Write-Host "Filename is $i"
  }
  </code></pre>
  
  <p>Sample result:</p>
  
  <pre><code>Filename is @{Name=oracle10204.rsp}
  Filename is @{Name=powershell.txt}
  </code></pre>
  
  <p>How do I get only the following?</p>
  
  <pre><code>Filename is oracle10204.rsp
  Filename is powershell.txt
  </code></pre>