Following the instructions from here:
--------------
Getting this error in the Ninja Console.
Action completed: Run Sophos Central Deployment (Win) Result: FAILURE Output: Action: Run Sophos Central Deployment (Win), Result: Failed
C:\ProgramData\NinjaRMMAgent\scripting\customscript_gen_7.ps1 : A positional parameter cannot be found that accepts
argument 'and'.
+ CategoryInfo : InvalidArgument: (:) [customscript_gen_7.ps1], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PositionalParameterNotFound,customscript_gen_7.ps1
-----------
This thread was automatically locked due to age.