Powershell output containing @{}
<p>This could be a dumb question but nevertheless I am struggling to find the relevant information for this online and intellisense can only offer so much.</p>

<p>Below is some code I have quickly produced:</p>

<pre><code>$upn = Get-Mailbox | Select-Object {$_.Alias}
$string = ":\Calendar"

foreach($_ in $upn)
{

$alias = $_

$Buffer = @();
$Buffer += '{0}' -f $alias;

Write-Host $Buffer
}
</code></pre>

<p>The results from the buffer output are as follows:</p>

<pre><code>@{Alias=Test00}
@{Alias=Test01}
@{Alias=Test02}
@{Alias=Test03}
@{Alias=Test04}
</code></pre>

<p>When in fact, I want it to output like follows:</p>

<pre><code>Test00
Test01
Test02
Test03
Test04
</code></pre>

<p>In all honesty I have had this occur to me in the past but wrote alternative solutions to work around it. I have come to the realization I can't and so I need to learn this and find out why the output displays <code>@{}</code> ?</p>

<p>I have tried selecting the column header by Name rather than the variable <code>(Alias instead of {$_.Alias})</code></p>

<p>Also tried printing out the variable <code>$_</code> and these results are identical to putting the variables into a formatted array.</p>

<p>Where am I going wrong?</p>