A useful utility for testing network connectivity and security permissions on servers which don't have the SQL management studio installed or as part of a devops server build integration test suite.
ReturnCode aka %ERRORLEVEL%:
0 = OK
1 = UnknownError