Complete a user task

Completes a user task with optional variables.