You need to use powershell filtering to exclude these volumes, please find attached the modified script and let me know how it goes.
Here are the modifications which i made in the script.
Based on your scenario i have appended another controller "192.168.1.23" which is the one from which you need to exclude vol3 and vol4
Next im checking for the IP address present in $global:CurrentNaController, if it matches 192.168.1.23 then $filteredvolumes variable would consist of all volumes from get-navol except vol3,vol4 (which you can modify with your volume names)
else if the IP Adress does not match the criteria it goes about doing the normal get-navol query.
if (($global:CurrentNaController | select -ExpandProperty address).ipaddresstostring -match "192.168.1.23")