pack script as a command line tool