One of the requirements of our project was to replace the existing web part from our production site which was causing many problems with performance. This web part was available in multiple content pages. So one of the options available to us was to write a PowerShell script to add a new web part to multiple content pages.

The following describes how to add a web part to a SharePoint page using a PowerShell script.

Thanks!