First of all, thank you for your prompt reply. I could solve the issue by removing “?retryWrites=true&w=majority” from the string. Quite weird, since this worked perfectly fine before the upgrade to M2 and I would have never expected this to be the final solution after investigating the docs, this forum and Stackoverflow!
I just used the “CONNECT” button in Atlas and follow the path for the application I want to use. Then I just copy & paste the command line or the connection string that is provided.