Today I'll show how we can build a function to create a list of dynamic variables. This would be used in a Task Sequence during the Operating System Deployment in the task "Install Application".
First we will need to find the list of applications and then create a variable with a specific pattern for each of them.
What does it look like inside the task Sequence ?
Before we dig into the PowerShell, I think it is important to understand where everything will goes.In the following task "Run PowerShell Shell Script", the script will retrieve in SCCM all the Applications advertised on the users (showed in previous article) and then create a bunch of variables that will be used in the task "Install Application".

