If the property is an array then you can use the [string]::Join() method to convert the array to a single string. This is needed when you want to export the objects to a .csv file using the Export-CSV cmdlet because that does not work with array properties.
Guest.IPAddress is also an array. So you can use the [string]::Join() method here also.
To insert a script in a post with the PowerGUI colors, use the PowerGUI Edit - Copy As - Html option. While editing the post select HTML in the upper right corner to insert the code. To prevent Internet Explorer from not showing the last line of the script insert:
<!--[if IE]><![endif]-->
between the last:
</span></pre>
of the script.