Add parameters and code needed for scriptexe. First prototype