There are several ways to convert a Java program to an executable file (.exe):
It sounds like you are trying to run the PHP command from the command prompt, but it is not recognized as a valid command.