An alternative to run your code is to develop it as a custom Extension. One of the advantages of this approach is that any modification of the code will be automatically reloaded by the Extension Discovery system. Also, the code will persist, even to possible Isaac Sim crashes.