How to assign multiple companies to a worker at a time

There’s no standard way to do this, but it is a simple developer script for association to multiple companies.