(GET-HISTORY)

Returns the list of last lines typed during READs. In conjunction with PUSH-HISTORY, this allows a program to save and then restore the top-level DOSKEY context.

When you use the (EXIT) primitive to quit Scheme, without giving an ERRORLEVEL parameter or with ERRORLEVEL = 0, a file containing this information named HISTORY.INI is always created in the default directory. It contains already a call to PUSH-HISTORY, so you just need to insert the command (load "HISTORY.INI") in your SCHEME.INI and the PCS DOSKEY environment will be restored.