Imho it's bad that such fundamental usecase is not desribed in any sensible 1-2 sentences. For the record output from UI mangles terminal and "consumes" logs. I also did not found any logs in bash scripts. What you will find is comment in code:
# if KERNEL_ONLY, KERNEL_CONFIGURE, BOARD, BRANCH or RELEASE are not set, display selection menu
So summary, manualy debuging seems like minimal subset is (values up to user wish ofc):
sudo ./compile.sh KERNEL_ONLY=yes KERNEL_CONFIGURE=false BOARD=bananapim2zero BRANCH=current RELEASE=jammy
Which boils down that you need to set each param that corresponds 1to1 to each UI screen.
Hope it helps next one. Thx