@tarwaniv
Here is a post that should help get you started.
Add a whose clause to filter for 7 days (or tweak the wmi call and add your filter there).