To Unhide Use below command
Set-DistributionGroup -IgnoreDefaultScope -BypassSecurityGroupManagerCheck -HiddenFromAddressListsEnabled $false -Identity “Distribution Group Name”
To hide Use below command
Set-DistributionGroup -IgnoreDefaultScope -BypassSecurityGroupManagerCheck -HiddenFromAddressListsEnabled $true -Identity “Distribution Group Name”