How to mass update a custom propery

I have a drop down menu that was just added to our custom properties.

It has two values, P or M.

Is it possible to update a library full of components to one of the options in the drop down list using the task scheduler or other means?

SolidworksParts And Features