The script is available for download from https://gallery.technet.microsoft.com/How-to-configure-DTC-to-cc0f3f18. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
Sometimes errors will be observed during the configuration of Distributed Transaction Coordinator and the using of distributed transaction. Fixing them one by one manually will be quite time consuming. This sample will help save you some effort.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery