runCommand is a MongoDB cli method. You probably want to use collection.mapReduce instead.
runCommand
collection.mapReduce