Configuring BIOS automatically

Is there a way to configure the BIOS automatically via the Linux CLI on Ubuntu 24.04?
Specifically,
Change the AcPowerLoss to “ON”
General setup --> Preemption Model --> Fully Preemptible
Is there a way to configure the BIOS automatically via the Linux CLI on Ubuntu 24.04?
Specifically,
Change the AcPowerLoss to “ON”
General setup --> Preemption Model --> Fully Preemptible