Afaik you cannot create a share from a UNC path. ie \\server\share\foldertobeshared

At any rate, any script able to make shares won't let you "script" share permissions :/ you'd have to either make the share yourself and then script the perms or script the share and set the perms manually.