FamilyInstance.ByHostAndPoint / Reset Default Instance Elevation

If I understood the linked article correctly, all you have to do is run the “CreateSimilar” command to restore the correct defaults. If you want to do that automatically at the end of the script, you could try using a PostableCommand: