Generally speaking, foreigners are not getting work permits or visas. The exception is Australians.
One of the requirements to be a captain in the US at a part 121 company is to have 1000 hours of 121 time. Foreign carriers are not certified as 121 so if you did it work at a US carrier previously, you most likely would not meet the requirements for direct entry captain.