Opening and Closing Applications in each test script

Hi, newbie here… I’ve inherited a bunch of test cases, which I am looking at streamlining. These are regression tests, that have been created to run as part of a regression batch but also independently. The problem I have is each script will run a check if the application is running, if it is is will close it then re-launch and reset the windows, then close the application at the end of the test. This is happening for every script. At the moment the only way I can see to avoid this is to create a batch of tests that have to be run in a specific order, so script 1 will launch the client, script 2, 3 & 4 will run, and script 5 will run then close the application. Is this a suitable way of running regression tests, or is there a better way?

Yes, or u may create a separate script for opening/checking application which will run on top of the batch scripts and remove the common code from all scripts…