Hi @Anonymous ,
There is a built-in client ConfigMgr task scheduler that run periodically, but if you want a supplement PS script, there is much in the Gallery, like the following:
Regards,
Youssef Saad | New blog: https://youssef-saad.blogspot.com
Please remember to ** “Accept answer” ** for useful answers, thank you!