Is it possible run a bat file in cmd before testing a request

Is it possible to run a run a bat file in command linebefore testing a request?
If it possible then could you please how or share your code
Thanks