build and run script