This is "simple", yet it is definitely one of my favorite features in IIS 8.0 beta.
1) Simply double-click on Configuration Editor:
2) Make the desired changes:
3) Under "Actions", click on "Generate Script":
4) Locate the new tab, PowerShell:
And now you can embed the generated script for your use. Yes, "simple", yet very powerful tool.
Hope you are enjoying the new features in IIS 8.0 beta. Please feel free to provide feedback.