Create phase-writer script to directly write test in sudo mode