Powershell Script String Comparison Function