Php Optional Function Parameters Powershell Script If Else