I want to set in my logon script a welcome message.

It most say in the morning: Goedemorgen
In the afternoon: Goedemiddag
And in the evening: Goedeavond

The time when he must say: Goedemorgen is between 0.00 and 11.59 hour and the time when he must say: Goedmiddag is between 12.00 and 17.59 hour and the time with the script must say: Goedeavond is between 18.00 and 23.59

I have tried some things with @time but every time my script gets an error.

How must this in my logon script?

Please advise..