Simple write script