Also setParameter is an unsupported command in M0,M2,M5,M10+ clusters
What is your cluster type?
Check this link
Configure MongoDb Server parameters in Atlas