Returning custom objects in PowerShell, simplified