execute an command