Attempted to fixed the missing set-env function