Just adding some more info. It appears that this is causing the issue?
Method invocation failed because [System.Object[]] doesn't contain a method named 'CreateCollectorForEvents'. At C:\Users\xxxx\Documents\Power Shell Scripts\snaps created.ps1:37 char :69 + $eventCollector = Get-View ($eventMgr.CreateCollectorForEvents <<<< ($eventFilter)) + CategoryInfo : InvalidOperation: (CreateCollectorForEvent s:String) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound