I am trying to set using Powershell
but there is no option to use above attributes when using Set-UnifiedGroup.
how to achieve this!
There's only a single parameter to control all "accept" settings -AcceptMessagesOnlyFromSendersOrMembers. You can add either a single entry or group, so all the functionality is there.