if Builtins.haskey(workflow, "prescript")
        interpreter = Ops.get_string(workflow, ["prescript", "interpreter"], "shell")
        source = Ops.get_string(workflow, ["prescript", "source"], "")
        type = (interpreter == "shell") ? "sh" : "pl"
        f = Builtins.sformat(