Environment variables operate both on the command line and prompts, and both from the shell and ICL. Thus if IMAGEDIR is an environment variable pointing to a directory containing the NDF called ngc1365, you could access it at a prompt as shown below.
IN - Input image /@starfield/ > $IMAGEDIR/ngc1365
KAPPA --- Kernel Application Package