Automating processes requiring bedtools