Php Function Pass Variable In Powershell Version