If I issue the command
(Get-AFServer -Name "AFNameDoesNotExist" -ErrorAcction SilentlyContinue) -eq $null
then it yields true (or $true to be correct). Just what I expected.
If I do the same for the PI Server cmdlet I always get thrown an error, I can't seem to handle it silently...
Get-PIServer -Name "PINameDoesNotExist" -ErrorAction SilentlyContinue
always throws "Get-PIServer : The requested server was not found..." to the console.