Architecture
wisely.ps1 is the only entry point. The modules don't know about each other — all orchestration goes through the main script.
Wisely/
├── wisely.ps1 ← Single entry point — orchestrates every module; no business logic lives anywhere else
├── modules/
│ ├── ProfileManager.ps1 ← Profile logic (apply, backup, rollback, import/export)
│ ├── Logger.ps1 ← JSON history of every operation
│ ├── Monitor.ps1 ← Controls the Windows scheduled task
│ ├── MonitorTask.ps1 ← The script run by the Task Scheduler
│ └── WeeklyReport.ps1 ← Generates the weekly reports
└── data/
├── profiles.json ← Profile definitions — the source of truth
├── history.json ← Generated automatically (not version-controlled)
└── reports/ ← Weekly reports (not version-controlled)Key principle
wisely.ps1 is the only entry point. The modules don't know about each other — all orchestration goes through the main script.