iOS: executeScript on realDevice

Hello, i was wondering if anyone had used any of the methods in some of the latest appium-xcuitest-driver like in executeScript and could help post a sample of the calls. You would just invoke this method when you call the driver?
I have this java code:

capabilities.setCapability(MobileCapabilityType.APP, “settings”);
final IOSDriver driver = new IOSDriver(new URL(“”),capabilities);
Map<String, Object> args = new HashMap<>();
byte[] byteContent = Files.readAllBytes(new File("~/Certificates.pem").toPath());
IOSDriver wd = (IOSDriver) getWebDriver().getDriver();
args.put(“content”, Base64.getEncoder().encodeToString(byteContent));
wd.executeScript(“mobile: installCertificate”, args);

but i was hoping to translate this into c# for a real device

dotnet client has tests in it’s repo for sample test app UICatalog, including one with an executeScript: