how to create schedule task using powershell?
windows 7 or less
if you dont have TaskScheduler module installed on your system or if you are running windows 7 or less version then you might have to use old commands
replace task schedule, name , script file with correct data before use**
windows 8 or higher
If you are running windows 8 or higher version then use below code: