Hello,
If you always want to run certain steps previous to the steps you selected when you "Run Selected Steps," you can place those steps in the setup step group. However, if you want to want those steps to be dependent on which steps you selected, you can use preconditions and the "RunState.InitialSelection.SelectedSteps." I am attaching an example written in TestStand v3.1 to this post which will demonstrate how to do this. I believe that you will be able to modify this example to suit your application. I hope this information helps you out.
Regards,
Kevin L.
National Instruments