How do I create a new bot brush statement with Python code?

Hey, I want to create a new brush command for a robot program in python, can I do that? The brush command is the red box that is circled.
微信图片_20240405125256