Sharepoint 2010 management pack in SCOM 2016

If you got to this page, then it’s probably because you’re trying to configure the Sharepoint 2010 management pack in SCOM 2016 and you’re getting an error like this one, while running the configuration task: The Event Policy for the process started at xx:xx:xx has detected errors in the output. The ‘StdErr’ policy expression: .+…