Automatically start PIE on startup

I’m trying to figure out how to automatically start PIE on startup. I was hoping it was be as simple as adding FPlayWorldCommands::Get().RepeatLastPlay; to the end of SLevelEditor::Initialize() but that didn’t work.