I need assistance. Very newbie to ps. I need a script that starts a certain service only if a certain app is launched. And then stop the service if the application is closed. Any guidance is appreciated.
Note: The service needs to start prior to this application started. I don't want it automatically started when the system boots up. Long story.
Perhaps a batch file will help to start the process in this order.
1. Start Service
2. Start application
3 If app.exe closes, stop service
Note: The service needs to start prior to this application started. I don't want it automatically started when the system boots up. Long story.
Perhaps a batch file will help to start the process in this order.
1. Start Service
2. Start application
3 If app.exe closes, stop service