DscResources/ChocolateyPackages/ChocolateyPackages.schema.psm1
Configuration ChocolateyPackages { Param( [Parameter(Mandatory)] [hashtable[]]$Package ) Import-DscResource -ModuleName Chocolatey foreach ($p in $Package) { $executionName = $p.Name -replace '\(|\)|\.| ', '' $executionName = "Chocolatey_$executionName" (Get-DscSplattedResource -ResourceName ChocolateyPackage -ExecutionName $executionName -Properties $p -NoInvoke).Invoke($p) } } |