Hello and welcome!
Your logic is right but there are more simple ways do to it:
const cameraFromFile = scene.getCameraByName("Camera");
scene.activeCamera = cameraFromFile;
Example - https://playground.babylonjs.com/#BFNTVK#4
You may play with cameras in the Inspector - turn them on and off with the camera sign