These two parameters could be passed to Register-Object/EngineEvent
-MaxTriggerCount is especially useful, as it unregisters the event subscriber after N events (which is very useful when something will only happen once).
Accordingly, both parameters should be able to be defaulted based off of a [Reflection.AssemblyMetadata] attributes of the event source, or a property on the returned object.
These two parameters could be passed to Register-Object/EngineEvent
-MaxTriggerCount is especially useful, as it unregisters the event subscriber after N events (which is very useful when something will only happen once).
Accordingly, both parameters should be able to be defaulted based off of a [Reflection.AssemblyMetadata] attributes of the event source, or a property on the returned object.