Hi Tomislav.
You can use the scheduler, but the fastest scheduler trigger can be 1 minute.
If it must be faster than that, you can have a PLC tage rotate between 1 and 1000 for example and execute the script on Change Value.
That said, dont try to do too much with scripts.
Scripts are prone to falling over, and they cannot always recoverautomatically.
Cyclically executed scripts should be treated as rotten eggs.
In the scripts, you have the system time and date available as the global variable "Now". If you need only the date there is the global variable "Date". If you need only the Day of the month for example, you can write
day = DatePart("d",Date)