As I read the page at the link I sent, shell *doesn't* look for the items in
the environment variable "pathtext" if there is an extension on the first
token of the command line and command extensions are enabled.
There is also documentation on the CMD command at
http://www.computerhope.com/cmd.htm.
Does the file run if you open a command window manually and type the program
name?