I'm looking for a script that will look through all existing libraries in a web application, find the ones that have a content type of document set and add a column to them.
Column name: pType
Column type: Single line of text
Column default value: doc
The libraries I am interested in were not created using the custom document library template but one that we created and template. So the script would need to look for this library type (if possible?)
Also, the document set in the libraries will have had their name changed from the default "document set"