AotPreBuilder.GenerateFromInternalMenu() InvalidOperationException when called from command line

I tried calling AotPreBuilder.GenerateFromInternalMenu() on the command line, but I get the exceptions InvalidOperationException: Trying to access a plugin container before it is initialized.

What is the correct way to PreBuilde from the command line?

Unity 2021.1.20f1 (64-bit)
Visual Scripting 1.6.1

I found solution。

public static void CallBuildApp()
{
_callBuildApp = AppDevelopMentBuild;
EditorApplication.delayCall += _callBuildApp;
}

public static void AppDevelopMentBuild()
{
EditorApplication.delayCall -= _callBuildApp;

if (!Unity.VisualScripting.PluginContainer.initialized)
{
EditorApplication.delayCall += _callBuildApp;
return;
}

Unity.VisualScripting.AotPreBuilder.GenerateFromInternalMenu();
}