Copy & Inserting the tag value from one file to another

Hi Guys,

I am trying to replace the tag value into one file from another file (dynamic value) by using powershell scripts but unable to do so.

I know it's possible to replace the value if it's static. I need to know how to replace the content of FILE B into FILE A inside the tag.


File A:



File B: (Here Repo and Branch will update everytime and I need to replace the dynamic values from this file into the File A tags)

Value: Testing


PS: It should not append the file A, just replace the values

Please do let me know if you need more clarity