issues setting calendar permissions

Hello!
I have script I created to set mailbox permissions but it is not changing the access rights or calendar processing. I would like another pair of eyes to see what i am doing wrong?

$Rooms = 'test room'
$User = 'Default'
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri HTTPS://EXCHANGE/POWERSHELL  -Authentication Kerberos
Import-PSSession $s -AllowClobber

ForEach ($Room in $Rooms){
Set-MailboxFolderPermission -Identity "$Room$(':\calendar')"  -User $User -AccessRights LimitedDetails | Set-CalendarProcessing -Identity "$Room$(':\calendar')" -DeleteSubject $false -AddOrganizerToSubject $false } 

Any help would be appreciated! Thanks!

At first glance:

Why are you pipelining a Set- to a Set- ? Place these on their own lines.

ForEach ($Room in $Rooms){
    Set-MailboxFolderPermission -Identity "$Room$(':\calendar')" -User $User -AccessRights LimitedDetails
    Set-CalendarProcessing -Identity "$Room$(':\calendar')" -DeleteSubject $false -AddOrganizerToSubject $false
}

Do you get any errors running this way?

 

Also if your room variable has any spaces, that might cause an issue with

-Identity test rooms:\calendar

 

I might build the string separately with single quotes first like

-Identity 'test rooms:\calendar'