Programming query execution Postgres
There is no task scheduling functionality built into PostgreSQL.

You can use an extension like pg_cron, but I don't know how easy it is to build that on Windows.

The simplest way would probably to use the Windows task scheduler to start your job regularly.