Php Function Pass Variable In Powershell If Statement