Run appium Test in stealth mode

how can i run a appium test without having to see the emulator
for exemple we want to host the test in server and run it periodicly for now i open the emulator and connecte to it from the appium server

  1. try find how to start appium emulator with flags
  2. flags to use -> -> “emulator-headless”
  3. failed step 1 -> start emulator yourself in test code as console command with any needed flags.