Copyright does not particularly care whether you produce infringing materials with a fountain pen or a plausible sentence generator software. In this case , it's not impossible your script will be found a derivative work and then 17 U.S.C. 106(2) applies.
Running Victorious Titus through the very human brain of Tyler Bates did not make the 300 soundtrack less infringing.
IANAL, this is not legal advice.
No, that doesn’t follow.
E.g., a photocopier in its normal mode of operation (because it produces mechanical copies of works already fixed in tangible form, which therefore are already copyrighted if copyrightable) cannot produce work that is copyrightable, but can produce things which violate copyrights.