I'm trying to automate a standard web server install on 2012 r2. I'm using add-windows feature to install a long list of features/Roles. What is the best way to format without using ' (backtick) to make it easily readable and simple to add/remove items should the default build change?
One, try just omitting the backtick. After a comma, the shell will usually look for the next piece of data. Or, define the string as an array first, and then pass the array (in a variable) to the parameter.