Running Powershell script in scheduled task
Like any other scripts, you will need to run Powershell-scripts not in manual mode, but as a scheduled task.
For example, mass importing and actualizing Lync Server users database you will need to run every one-two-three hours.
Of course, Task Scheduler in Windows should help in this issue, but how to run *.ps1 file?
Solution is quite simple:
powershell.exe -file D:\powershell_files\update-csuserdatabase_update_csaddressbook.ps1