Perform multiple updates (upserts) on Embedded documents

HI Takis, is this query is for MongoShell ? can I have full syntax of the query, I get syntatical errors when running in MongoShell.