powershell foreach object return hashtable