I created a new Sharepoint group using powershell. I need to provide "Contribute" permission on a sharepoint library for this group in the sharepoint site.
But What about the document library on which I want to set my group with contribute permission? The script you provided just attached a role to the group but not to the particular document library..
So it seems like you created a group, now we have the code to assign a role to the group. Guess all that's left is to assign the group to the document library. I'll take a look.