Is it possible to have an escript that depends on mix itself?

For example, calling Mix.Task.run/2 or using a library that calls the formatter?

I added :mix to extra_applications in my mix.exs which solved my problem. Well, I can’t use Mix.Task.run/2 but that’s actually ok, but it lets me use the lib dependent on mix.