updated run script to accept command line arguments