How to output objects from your own PowerShell functions