running ui script as part of instrumenting ios app

I am using xctrace record to instrument my ios app, but in previous instruments there is a way to attach ui script to run along with app, to perform different operations on the app using UIASCRIPT options. What is the equivalent here