This script will process all features and generate a DSC script that you can use to bring up a new server with the same feature set. You can also use it to generate a configuration of the default installed features of a given server.