providing app context for task pre and post run commands