title: Execute command in Read-host
body: <p>In PowerShell 5.1.17763.1490, I want to display a list of names <strong>in</strong> the Read-Host commandlet</p>
  <pre><code>Connect-PnPOnline -Url $webUrl -Credentials (Get-Credential)
  $availableLists = Get-PNPList | select Title
  $listName = Read-Host &quot;Enter list name (e.g. Documents). Available lists are: $availableLists&quot; 
  </code></pre>
  <p>Currently, it prints something like this:</p>
  <pre><code>Enter list name (e.g. Documents). Available lists are:                        : 
  </code></pre>
  <p>Yet I expect it to print:</p>
  <pre><code>Enter list name (e.g. Documents). Available lists are: Documents, Form Templates, LibOne:
  </code></pre>
  <p>I can return all these list names by executing <code>Get-PNPList | select Title</code></p>