AMENDED AND RESTATED TERM LOAN CREDIT AGREEMENT among TEAM, INC. as the Borrower, THE LENDERS FROM TIME TO TIME PARTY HERETO, and CANTOR FITZGERALD SECURITIES, as the Agent Dated as of June 16, 2023