mongosh currently does not support the "string" variants of db.runCommand and db.adminCommand - only the "object" style is supported.
Example that works:
db.runCommand( { isMaster: 1 } )
Example that does not work but works in mongo:
db.runCommand('isMaster')