The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-Enable-IIS-Remote-fdb21036.
You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
The sample script provides the below functionality: 1. Remotely enable the RemoteManagement in WMSVC on all the specified server 2. Enable the IIS Manager Credentials and Windows Credentials only. 3. Create a Test IIS user (non-admin) and add this test use to the concerned site.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery