Sometimes you have to run the management commands in some tasks or other sort of programmatical features. So you can do this very easily.
You can run this programmatically as follows:
from django.core.management import call_command
call_command('{command name}', interactive=True/False)
Don't forget to give star to the gist. Happy Coding!