Powershell Function Returns Array Instead Of String