Command class to run commands in a different thread with TIMEOUT option