Can I record the script with app in a real device without app path?

? /I want to record the scripts with app in a real device without app path. Is it possible ?

if so , how can i do that ?