Export ValdiateTransactionScript function.

This function allows the caller to execute and validate all scripts for
the passed transaction (which includes signature verification).