Decorate the HandlerContext to support response messages for this event handler invocation.
Task execution happens is rooted in an event handler executing; this would prevent response
messages to work out of the box which is why this function adds the respond function to the
MessageClient if possible.
Prepare the CommandInvocation instance to be sent for execution
This pieces apart provided values form the parameters into the command's parameter, mapped parameter and secret structures.