Thank you for sharing the details. It appears the issue is due to an incorrect component ID used in the script.
The correct component ID for the .NET Framework 4.5.2 Targeting Pack is:
--add Microsoft.Net.Component.4.5.2.TargetingPack
Kindly update your script to replace the existing line with the one above. This should allow the installation to proceed as expected.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.