Executing console command when starting editor

Maybe check this out: Running Blueprints at Editor Startup | Unreal Engine Documentation

Or this: Inject Python Startup Script