@ECHO OFF setlocal DISABLEDELAYEDEXPANSION SET BIN_TARGET=%~dp0/phpcs SET COMPOSER_RUNTIME_BIN_DIR=%~dp0 php "%BIN_TARGET%" %*
info at phpclasses dot org