'Run with highest priviledges' just to be sure nothing interrupts it (optional) 'Do not Store Password' check since it's an offline script 'Run whether user is logged in or not' is required so that a powershell window doesn't flash every time this runs.
Open Task Scheduler and create a new task with the following settings: It can be a bit tricky to pull off seamesly, but it can be done with the following steps: