I'm sort of migrating my performance-monitor script from linux to windows, and i recently discovered PowerShell. Kinda start loving it!
cron-job in linux has really low performance footprint. In windows, i tried to call my PS script in scheduled Task via command "powershell.exe scriptname.ps1"
The problem i discovered was that CPU usage shoots up to 100% everything powershell.exe came into the picture.
Similar thing happened when I manually execute " powershell.exe sriptname.ps1 " from CMD.
If I simply call scriptname.ps1 from the PS console, then there's no effect on computer-performance.
So, my question is that there is any way to get around callling powershell.exe while doing automation PS.