Search notes:

Windows environment variable: PATHEXT

The environment variable %PATHEXT% contains a list of file extensions (with the corresponding dot) that are separated by a semicolon (as are the paths in %PATH%).
The extensions usually specify a file type that can somehow be executed. Commonly seen extensions include:
PATHEXT is used to start a program, batch file or script without explicitly specifying its suffix in cmd.exe or its start command.
There seems to be no Unix equivalent: http://unix.stackexchange.com/questions/280528.

PowerShell

In PowerShell, the extension of a (non-PowerShell script such as a Perl or Python script) must be listed in PATHEXT in order for the script to be executed in the current console (rather than spawning a new console in which the script is executed).
This behavior does not seem to be documented and might even be a bug, see also

See also

Windows environment variables

Index