Add the OpenCMD() function for Ubuntu