Delete please - not possible. Going to repost question in different section.
closed as unclear what you're asking by Waqas Sarwar MVP♦ Jun 24 '17 at 3:08
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
You're really close.
Get rid of the foreach loop but keep the bit about instantiating the web part instance, then call AddWebPart on your web part manager, passing in an instance of your new-object HSWebServiceRender.