Get-Service throws wrong exception if remote host is offline
Get-Service returns exception as "Cannot find any service with service name" even if we give an offline/not existing host as argument for -ComputerName parameter
Given the low impact of the error message, this probably won’t be a high priority for us unless it gains significantly more votes here.
That being said, I went ahead and filed this on our GitHub repository as an `up-for-grabs` issue so that any public contributor can also fix it if they choose to: https://github.com/PowerShell/PowerShell/issues/2747
Prasoon Karunan V commented
This could completely break the logic of a script in case of error handling