How to execute cmd/python code from blueprint?

I am trying to create a txt file using cmd.
Does anyone know how to do it.

If you only need to create a text file, maybe this plugin on the marketplace would help?

A plugin is the best option to do that besides writing the required C++ code yourself.