First you will need to obtain:
an account that will be used to execute this scheduled task (Ideally a service account for this purpose with just enough rights to do the job)
a host where will you run this scheduled task and the version of PowerCLI/PowerShell associated (For example a 2012R2 server. Avoid a personnal computer)
confirm that the host is in the same AD that is configured for the VC (It you are planning to use windows authentication to connect to the VC)
Then modify the script:
The information below will be a bare minimum assuming that the account that will execute the schedule task is able to connect via windows authentication to the VC
connect-viserver "your vCenter"
#All the script here
disconnect-viserver -Server "your vCenter" -Confirm:$False
And save it in a path reachable from the "PowerCLI Host" in a file "yourscriptname.ps1"
(For a script that will run every day adding error handling in the script will be a must)
Then you will have to create a schedule task in Windows to execute this "yourscriptname.ps1" under the account identified in the first step
2 solution at this stage:
Only execute the script
Identify all snapin/modules needed for your script and add them in the first lines of "yourscriptname.ps1"
(This is why knowing which version of PowerCLI is necessary. Since PowerCLI 6 some commands are available as module and not as snapin)
Load "PowerCLI" environment and execute the script. (Using psconsolefile and vim.psc1)
More details there:
Running a PowerCLI Scheduled task