Whether you see it depends on how you run the script. Although even if you did see it written to the console, the script would continue. This sort of thing is useful for logging.
If you want to suppress the warning completely, you can set $WarningPreference = 'SilentlyContinue' at the top of your script, alternatively, to suppress for just that warning, use:
Write-Warning "$_.Exception.Message" -WarningAction SilentlyContinue
Edit: remove hyphen from -SilentlyContinue