Added ability to run commands when a challenge is completed or repeated.