generate mongo shell command