Please post questions like this that don't include script code to General or Starters forum.

Take a look at this post and see if that helps you do what you're looking to do or not.

running a script every 45 days

If that meets your needs you could modify to 7 days instead of 45.