How to get baseline ID by passing publication ID in ISHRemote?

Hi,

 

I am trying to get all baseline item(topic ID, image ID etc) using below script and able to gt all the details.

$ishSession = New-IshSession -WsBaseUrl $url -IshUserName $username -IshPassword  $password
    $baselineIds = @("GUID-9D4D5E8D-EF9F-4B9D-9760-DB55D4898377")
   
# echo Get-IshBaselineItem -IshSession $ishSession -Id $baselineIds

$basename=Get-IshBaselineItem -IshSession $ishSession -Id $baselineIds | Out-File D:\filename.txt

 

But I am passing baseline ID only to get all these result. Is there any way to pass publication ID and get baseline ID so I can pass baseline ID in this script and get all baseline Items.

Thanks

Roopesh