Sample_AdobeReader.ps1

# Create .intunewin package file
New-IntuneWin32AppPackage -SourceFolder C:\Temp\IntuneWinAppUtil\Source\AdobeReader -SetupFile "install.cmd" -OutputFolder C:\Temp\IntuneWinAppUtil\Output -Verbose 

# Variables
$Version = "19.012.20040"

# Get MSI meta data from .intunewin file
$IntuneWinFile = "C:\Temp\IntuneWinAppUtil\Output\install.intunewin"
$IntuneWinMetaData = Get-IntuneWin32AppMetaData -FilePath $IntuneWinFile

# Create custom display name like 'Name' and 'Version'
$DisplayName = "1Adobe Reader DC" + " " + $Version

# Create detection rule
$DetectionRule = New-IntuneWin32AppDetectionRule -MSI -MSIProductCode "{AC76BA86-7AD7-1053-7B44-AC0F074E4100}" -MSIProductVersionOperator greaterThanOrEqual -MSIProductVersion $Version

# Create custom requirement rule
$RequirementRule = New-IntuneWin32AppRequirementRule -Architecture All -MinimumSupportedOperatingSystem 1903

# Convert image file to icon
$ImageFile = "C:\Temp\IntuneWinAppUtil\Icons\AdobeReader.png"
$Icon = New-IntuneWin32AppIcon -FilePath $ImageFile

# Add new EXE Win32 app
$InstallCommandLine = "install.cmd"
$UninstallCommandLine = "uninstall.cmd"
Add-IntuneWin32App -TenantName configmgrse.onmicrosoft.com -FilePath $IntuneWinFile -DisplayName $DisplayName -Description "Adobe Reader DC" -Publisher "SCConfigMgr" -InstallExperience system -RestartBehavior suppress -DetectionRule $DetectionRule -RequirementRule $RequirementRule -InstallCommandLine $InstallCommandLine -UninstallCommandLine $UninstallCommandLine -Icon $Icon -Verbose