EditorScriptingHelpers::CheckIfInEditorAndPIE

Check if the editor is in a valid state to run a command.