set-pssessionconfiguration permission issue

Dear Community

I need your help , after upgrading powershell version from 4 to version 5 pssesion configuration permission for few service accounts went missing , i am adding them using Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI command which has gui pop-up and then you can add the service accounts. I would like to know if this can be done via powershell with out GUI . Thanks.