Writing a script is one of the most challenging tasks.