Hi
Please refer the script to check whether the particular service is running or not
Edit parameters
serName='Power' # pass your service name
Note: Run the script as system user
---
Comments