Trying to exec the script first to add the function, then call it