Fetch bios data through CLI

How to fetch data of bios without restarting the system? I tried hp bios configuration utility (BCU). It got installed successfully. When running the script. It is creating output file but it’s empty. Terminal showing 0 bytes written. My basic requirement is to fetch bios setting anyhow without restarting system.

It has its limitations, but sudo dmidecode |more is a CLI command that provides some BIOS information (not much settings, but BIOS and hardware specifications and some BIOS resources that are activated/enabled). I’m not sure that this will help you, but it’s worth trying (that is: if you haven’t yet). See also this.