Write request file instead of trying to execute script directly