Use Task Scheduler to run psql
on the desired schedule, with a command like:
psql -U username -d databasename -w -c 'SELECT my_procedure()'
and put the password in your .pgpass
file, or set a PGPASS
environment variable in the task.
You don't need any kind of script unless you want to do command specific error handling.