Split scripts into pieces if too long, when getting a trustedInput.