Some ConfigurationItem objects have MethodIds defining commands that can be invoked.
The response to an Invoke-Method command may be a ConfigurationItem of type 'InvokeInfo' which may have one or more properties that need to be filled out before sending the updated InvokeInfo item to the Invoke-Method command again.
Alternatively, if no additional information or Invoke-Method call is needed, the result may be of type InvokeResult.
The result may also be a Task, indicating the operation may take some time.
You can then poll periodically for task status until the State property is 'Completed'.
REQUIREMENTS
Requires VMS connection and will attempt to connect automatically
Invokes the AddUserDefinedEvent method which returns a ConfigurationItem of type InvokeInfo.
Fill out the Name property of this ConfigurationItem and resend to the Invoke-Method command to create a new User Defined Event.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.