DscResources/Chrome.psm1

configuration Chrome
{
   param
     (
        [String] $targetFilePath = "$env:SystemDrive\Windows\DtlDownloads\GoogleChromeStandaloneEnterprise.msi",
        [String] $productId = "A4DE5CD7-96D6-3979-8C39-E864396AFFC0",
            [String] $baseUri = "https://dl.google.com/tag/s/appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=3&usagestats=0&appname=Google%2520Chrome&needsadmin=prefers/edgedl/chrome/install/GoogleChromeStandaloneEnterprise.msi"
     )
     Script Downloader
     {
        SetScript = { 
           Invoke-WebRequest -Uri $baseUri -OutFile $targetFilePath
        }
        TestScript = { Test-Path $targetFilePath }
        GetScript = { <# This must return a hash table #>}
     }
     
     Package Installer
      {
        Ensure = "Present"
        Path = $targetFilePath
        Name = "Chrome"
        ProductId = $productId
      }
}