Control Fan on Ubuntu 20.04 LTS

Hi,
I have installed Ubuntu Server on Pi Top 4 but is there any way I can install the script to control the fan? Its very loud and constantly running.

Thanks

this should work https://knowledgebase.pi-top.com/knowledge/controlling-the-pi-top-4-fan
this too https://knowledgebase.pi-top.com/knowledge/pi-top-and-raspberry-pi-os