Powershell Function Returns Object Array Instead Of String