Use tmp file to download and run scripts