Private/test.ps1

<#
Import-Module servermanager
 
$featureNames = ('Web-Server', 'Web-Mgmt-Console', 'Web-Request-Monitor', 'Web-Windows-Auth', 'Web-Asp-Net45', 'Web-Net-Ext45', 'Web-ISAPI-Filter', 'Web-ISAPI-Ext', 'NET-WCF-HTTP-Activation45', 'NET-Framework-45-ASPNET')
 
$features = Get-WindowsFeature $featureNames
 
Write-Host "Not Installed"
$features | Where-Object InstallState -ne Installed
 
Write-Host "Installed"
$features | Where-Object InstallState -eq Installed
 
#>