moves script into a profile script