Creates temporary file in a TMPDIR folder or /tmp folder if TMPDIR doesn`t defined, with file name like current shell name and '-XXXXX'-formatted suffix, and saves created path to the 'tempFile' variable.
tempFile="$(mktemp "${TMPDIR:-/tmp/}$(basename "$0")-XXXXX")"