Allow running an application using a function call - MyApp.invoke(...)