title: How to expand member-variables in Write-Host or double quotes?
body: <p>I have written a PS script and for diagnostic purpose am echoing messages to screen using Write-Host. This is fine as long as I have to expand normal variable like</p>
  
  <blockquote>
    <p><code>Write-Host "Hello World, $name"</code></p>
  </blockquote>
  
  <p>Problem starts when i try to echo some member variable as below</p>
  
  <pre><code>Write-Host "Hello World, $Person.Name"
  </code></pre>
  
  <p>This does not expand as expected. The work around that am following is, to use temp variable
  as below</p>
  
  <pre><code>$personName  = $Person.Name
  Write-Host "Hello World, $personName"
  </code></pre>
  
  <p>Is there an elegant way of doing this with out the use of temp variable?</p>