#TodayILearned that if you are daft enough to have a begin ‘bit’* without process and end ‘bits’ in a Powershell function, then it returns:

“Missing closing ‘}’ in statement block or type definition.”

It’s perhaps not the most useful error message for this particular case…