For script, I suggest to contact Script Forum for further help:
The Official Scripting Guys Forum! Forum
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding.
Here’s the steps for installing a Loopback Adapter in Windows 7
Open Control Panel
Click on Device Manager
Right Click Computer --> Add legacy device
Start Wizard --> Install Manually [advanced]
Choose Network Adapter --> [hit next]
Choose Microsoft --> Select, Microsoft Loopback Adapter
Hit Next to Begin Installing
TechNet Subscriber Support
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.