• Are you passing the SQL instances as a parameter? For example, like this:

    ./get-invalidlogins 'Z002\SQL2K8'