Grant Permissions to Folder Share

Grant-SmbShareAccess -name $ShareName -AccountName $Account -AccessRight Full -Force
Details
Grants share permissions to a user or group

Example
PS C:\> $ShareName = 'ScriptFiles


>> $Account = 'Domain Admins'
>> Grant-SmbShareAccess -name $ShareName -AccountName $Account -AccessRight Full -Force


Name                    ScopeName               AccountName             AccessControlType       AccessRight
----                    ---------               -----------             -----------------       -----------
ScriptFiles$            *                       DOWST\Domain Admins     Allow                   Full