namespace :performance do desc "Export data XMLs for import into Central Data System (CDS)" task :run_ab, %i[email password] => :environment do |_task, args| email = Rails.root.join(args[:email]) password = Rails.root.join(args[:password]) system("echo install apache2-utils") system("apt-get update && apt-get install curl && apt-get install -y apache2-utils") system("echo get token") token = `curl -c token_cookies.txt -s https://review.submit-social-housing-data.levellingup.gov.uk/2621/account/sign-in | grep '