OSVR First Person Controller disable

I know the (similar) topic is as old as the forum. I´ve searched the forum for the last weeks and I am sure I found almost every thread to this topic.
So: Sorry for asking again.
The reason: Nothing worked so far.
The issue: Disable a prefab via java script.

The picture attached shows the checkbox I need to chek and uncheck @ via javascript. Its one of three FP Controllers in the scene. The others are a flight camera and the standard Unity FPS Controller. I can switch between those two with some code snippets I got out of the forum but everyting I tried fails with the OSVR FPS-Controller.

Attached is my code so far: I know it´s not the best but it works…so far. So any help is greatly appreciated because: I just can´t figure it out.

public var FirstPersonCam : UnityStandardAssets.Characters.FirstPerson.FirstPersonController ;
public var TOFCMove = GameObject.Find("TOFCamera");
public var TOFCamera : Camera ;

function Update() {
    //this is a hard wired connection to the "F1" Key on the keyboard, switch it any keyboard key if you like
    
    if (Input.GetKey(KeyCode.F1))
    {
        FirstPersonCam.GetComponent.<UnityStandardAssets.Characters.FirstPerson.FirstPersonController>  
        ().enabled = true;

        TOFCamera.GetComponent.<Camera>().enabled = false;
        TOFCMove.GetComponent("TOFCMove").enabled = false;
    }
   
//this is a hard wired connection to the "F2" Key on the keyboard, switch it any keyboard key if you like
   
    if (Input.GetKey(KeyCode.F2))
    {
       
        FirstPersonCam.GetComponent.<UnityStandardAssets.Characters.FirstPerson.FirstPersonController>
        ().enabled = false;
   
        TOFCamera.GetComponent.<Camera>().enabled = true;
        TOFCMove.GetComponent("TOFCMove").enabled = true;
     }

}

Basic camera switch script was taken from some other thread can´t remember which…Sry.

You are working with the OSVR library for the VR SDK, not the traditional library. so if you want to use those components, you need to use:

GetComponent<OsvrInputController>();

Instead of

GetComponent<FirstPersonController>();

There is no first person controller in OSVR. You literally need to put the name of the Script from the Editor in between the < >

Just a tip, but you should also be using C# with OSVR, the core components are coded in C#