Changes function to an executable script.