Update CMD application

Add UART open/close options