Powershell Script String Comparison Function In C