Why can’t cmd process php script?

Here is just one line:

exec("D:/www/iias_error/arj/arj.exe e D:/DATA/30/B0020047.C4U");

On the browser, it renders. Here is the unpacking of the arj archive. But in cmd does not work.
Does anyone know the reason?

Answer 1, authority 100%

How does cmd know how to run a script? See working with Apache under Win (do you have the same server?) from cmd.