Use the following procedure to call an existing reusable Command task as the pre- or post-session shell command for the Session task:
In the Components tab of the session properties, click Reusable for the pre- or post-session shell command.
Click the Edit button in the Value field to open the Task Browser dialog box.
Select the Command task you want to run as the pre- or post-session shell command.
Click the Override button in the Task Browser dialog box if you want to change the order of the commands, or if you want to specify whether to run the next command when the previous command fails.
Changes you make to the Command task from the session properties only apply to the session. In the session properties, you cannot edit the commands in the Command task.
Click OK to select the Command task for the pre- or post-session shell command.
The name of the Command task you select appears in the Value field for the shell command.