You can execute a custom procedure before running a test case. One example of when this feature can be helpful is when specific test data can be inserted into the database only once. Before running a user can run a script that deletes the database records inserted by the previous test run.  

To do so, in the Advanced Options section enter the command to launch the script in the Pre-run Command Line property.  You can also specify a script timeout in the Pre-run Command Timeout