Enable objects per scene

I’m making a scene manager where it enables game objects depending on what scene the player is currently on. I already have a line that detects what scene is currently on , I just need some help on how to enable objects that are assigned to a specific scene.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class SceneCheck : MonoBehaviour
{
    private string SceneName;

    public string[] Scene;

    public GameObject[] AIManager;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        SceneName = SceneManager.GetActiveScene().name;
    }
}

What is the best way to approach this?

Early thanks!

private string sceneName;
private string currentSceneName;
public GameObject aiManager;

     void Start()
     {
          currentSceneName = SceneManager.GetActiveScene().name;
     }

     void Update()
     {
         SceneName = SceneManager.GetActiveScene().name;
         if(currentSceneName != sceneName) // to only call SceneManager() when the scene change
           {
              currentSceneName = sceneName
              SceneManager(sceneName);
           }
     }

      void SceneManager(string sceneName)
      {
         sceneChanged = false;
    
         foreach(GameObject obj in aiManager)
         {
             obj.SetActive(false);          // To disable all gameobjects whether they are active in the current scene or not.. preparing for the next scene.
         }
    
          if(sceneName == "Scene1")  // whatever the scene name is..
          {
              aiManager[0].SetActive(true);
              aiManager[1].SetActive(true);
              aiManager[2].SetActive(true);
          }
          else if(sceneName == "Scene2")  // whatever the scene name is..
          {
              aiManager[3].SetActive(true);
              aiManager[4].SetActive(true);
              aiManager[5].SetActive(true);
          }
             else if....... // for each scene.

Pretty sure this isn’t the best approach at all, but will work.
Recommending changing the idea of how the scene works in your game… or wait for someone who is pro to reply idk