The Chrome OS has a Developer Mode that gives you root access to the operating system of your Chromebook.
To use your PS4 controller on a PS5, connect it to the PS5 with a USB cable and press the PlayStation button on the controller.