BEGIN,PROCESS,END. - can be used in scripts?

Hi,
Sounds like a basic question.
Can scripts have begin , process, end blocks is it only functions?

Yep, scripts can have everything a function can: pipeline input, begin/process/end blocks, dynamic parameters, etc.