Hello,
Sorry for the confusion, but we are not sure we understand the desired behavior. Do you need to input the ticket number manually when running the Custom Command or it should be taken from a specific property of the target user?
Any additional details and live examples will be very helpful.