Set console as the CMD in OpenCMD function