$featureName = "FS-Data-Deduplication"
if((Get-WindowsFeature -Name $featureName).InstallState -ne "Installed") 
{ 
    Install-WindowsFeature -Name $featureName -IncludeAllSubFeature
    Write-Host "Installing $featureName"
}
