The COMX restarts when I give a DOS command

This is most likely due to skipping the 'DOS NEW' command. After every 'Reset' you have to give a 'DOS NEW' to reset the COMX DOS.