Use Variable In Powershell String Comparison Perl