Hi,
The two extensions are independent from each other. If you see that the DSC extension is changing states, I would suggest to check the activity log and see who has performed action on the extension of that time. May be there is some behavior in your script that is causing that or some coincidence that someone has executed the extension at the same time.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.