can i run a script on PAM in order to change the AD admin on AD , and in PAM vault every 5 days?

Thank you,
Elias