different method for executing command and storing to gridfs