convert PSObject to hashtable