How to use XCTest commands in Appium IOS Scripting ( as we use javascripts in selenium scripting)?

As i’m unable to automate one part of the application using appium, I trying this approach to insert XCTest commands in my appium java scripting. is this possible?