doskey
Reference article for the doskey command and Doskey.exe, which recalls previously entered command-line commands, edits command lines, and creates macros.
Getting that up-arrow command recall in DOS 6.22... 👌 straight to the AUTOEXEC.BAT
There is an awesome enhanced DOSKEY with tab completion: http://paulhoule.com/doskey/