Convert the script as a commandline app.