How to call a Script from SyncProject Varialbe Script

I want to implement scripted variables in sync project (to get the passwords for connecting the target systems).
So I can call the corresponding service directly in the script.

But would it also be possible to centralize this functionality in a "normal" Script coming from the Designer?

How would it be possible to call that scripts?

Im running OIM 8.2.1