I may have missed the reason you're not using CMDLETs instead of "net" command line syntax, but have you tried?
Get-SMBShare | Where-Object {$_.Name -notlike "*$*"} | ForEach-Object {Get-SMBShareAccess -Name $_.Name}