How to disable and enable build-in camera

Hi all, In MacOS, how can I disable or enable build-in camera by program or script?

What's the underlying reason you need to disable the camera? Knowing that determines the right way to achieve your goals. For example:

— Ed Ford,  DTS Engineer

How to disable and enable build-in camera
 
 
Q