IOS Real device :- how can WebDriver agent to be stable not delete with every test script

i used capabilities
cap.setCapability(“startIWDP”, true );
cap.setCapability(IOSMobileCapabilityType. USE_PREBUILT_WDA , true );
cap.setCapability(IOSMobileCapabilityType. USE_NEW_WDA , false );

it is required to install app before test script but when it installed , it delete WDA and it fails

if any one have idea to run this script by java code before test to be sure that WDA will not delete

cd /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent && xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=00008101-00015D200E91001E’ test

i tried to run it by java code but it appears succeeded but wda did not appear on mobile

//run webdriver agent before test
Process p = null;
String[] commands = new String[] {"/bin/bash", “-c”,“xcodebuild” ,"-project", “WebDriverAgent”,".xcodeproj", “-scheme”,“WebDriverAgentRunner”,"-destination","‘id=00008101-00015D200E91001E’",“test”};
ProcessBuilder builder2= new ProcessBuilder(commands);

		File dir = new File("/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent");;
		  p = builder2.start();
	 BufferedReader reader =  
              new BufferedReader(new InputStreamReader(p.getInputStream()));

        String line = "";
        while((line = reader.readLine()) != null) {
            System.out.print(line + "\n");
        p.waitFor(100000, TimeUnit.SECONDS);

Thread.sleep(3999999); */