Not going to help with this one. Scraping LinkedIn behind a login breaks their terms (that's why the account got restricted), and collecting personal emails of people who never gave them to you is a GDPR problem if any of them are in Europe, and a deliverability one either way.
If the goal is outreach: use LinkedIn Sales Navigator, or a B2B data provider that sources contacts with a legal basis and handles opt-outs. Pricier than a script, but it won't burn your account or your domain.