Complete task statement: Schedule scan current processes in the system, if there is no notepad process, then start it.
I have never worked with PowerShell, but the task has been set and it needs to be solved. I tried to do this:
IF (Get-Process notepad.exe -ErrorAction SilentlyContinue) { } ELSE { Start-Process notepad.exe } But the notebook always starts. Any ideas?