adding helper method for MP

MP's got a hashtable/hashset problem in powershell... now he can fix it