▲ 4 r/PowerShell
End Task script is repeating back to me instead of executing
I have tried to make a script to close Webex when it reached a certain time but the CLI just repeats the command back to me instead of executing it. AI has no given me any useful suggestions so I am hoping someone on here could help me. Code is as follows:
Get-Process -Name "Webex" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
Write-Host "Webex has been stopped." -ForegroundColor Green
u/Covid_Nipple420 — 6 days ago