I tried to use the Script for an Intrasite replication. However, it is not working and will cancel with the following Output:
Get-PvsStore : Cannot bind parameter 'StoreId'. Cannot convert value "System.Object[]" to type "System.Guid". Error: "Guid should contain 32 digits with 4 dashes
In my case, this line returns more than one store back and this is not supported
$IS_storeID = (Get-PvsServerStore -ServerName $IS_srcServer.Split('.')[0]).StoreID[0].ToString()