How do I get the id of a folder object using ISHRemote?

Hi,

I am trying to use ISHRemote to move folder contents and am failing to see how I get the ID for the ToFolderId parameter if I am creating the folder dynamically via ISHRemote as well

I have tried the code below but Get-IshFolder returns a folder

Move-IshFolder -IshSession $ishSession -FolderID 5061139 -ToFolderId (Get-IshFolder(Add-IshFolder -IshSession $ishSession -ParentFolderId $parentfolderID -FolderType ISHNone -FolderName $folderName -ReadAccess @("") -OwnedBy ""))

How do I get the ID values from and folder object?

Thanks in advance,

Ann