Hi @Ambros,
Not clear about your requirement.
If you only want to run sql command in Script Task, you may take a reference here.
If you want to execute an SQL Task and Script Task together in one package, you may use the two tasks in your package.
If i misunderstand your issue, please incorrect me.
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.