Use PHP as Scripting Language in Windows Vista and 7:
ASSOC .phs=PHPScript
FTPYE PHPScript=[path to]\php.exe -f "%1" -- %*
optional set PATHEXT=.phs;%PATHEXT%
now you can execute any php-script (ext: .phs) from the shell like a .vbs or .cmd.
"c:\testscript.phs arg1 arg2" or with the optional step "c:\testscript arg1 arg2"
i hope this helps somebody.