Run this command on server with SQL CLI installed (this will only detect SQL servers…