Run external function from root macro