@SETLOCAL EnableExtensions DisableDelayedExpansion
@if exist "%~1" (set WHAT=) else set "WHAT=%~dps$PATH:1%"
@for %%I in ("%~dp0php.exe" "%~dp0PHP\php.exe" "%~d0\PHP\php.exe") DO @if exist %%I %%I %WHAT%%*& goto :EOF
@for %%I in (PHP\php.exe nul\..\..\..\..\PL\PHP\PHP.exe) DO @if not "%%~$PATH:I"=="" "%%~s$PATH:I" %WHAT%%*& goto :EOF
@echo ^<%~f0^> ERROR! PHP not Found ...& pause>nul& EXIT /B 9009
