Possible To Access Xojo IDE Functions?

Is it even possible for an app coded in Xojo to access Xojo IDE functions? For example, is it possible to have an app edit a code file then have the IDE refresh then run the app? I know the code editing part can be done, however, I am wondering about the “refresh the IDE and run the app” part. I’m thinking about creating a “companion” app that would work with Xojo in this aspect.

Thanks,
Shane.