/Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Public/PluginUtils.h
Will fail if the plugin already exists
The newly created plugin. If something goes wrong during the creation process, the plugin folder gets deleted and null is returned.
static PRAGMA_DISABLE_DEPRECATION_WARNINGS[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [IPlugin](API\Runtime\Projects\Interfaces\IPlugin) > CreateAndMountNewPlugin ( const [FString](API\Runtime\Core\Containers\FString) & PluginName, const [FString](API\Runtime\Core\Containers\FString) & PluginLocation, const [FNewPluginParams](API\Plugins\PluginUtils\FPluginUtils\FNewPluginParams) & CreationParams, const [FMountPluginParams](API\Plugins\PluginUtils\FPluginUtils\FMountPluginParams) & MountParams, [FText](API\Runtime\Core\Internationalization\FText) & FailReason )