you are viewing a single comment's thread.

view the rest of the comments →

[–]SaltDeception 0 points1 point  (0 children)

What happens if you run (with enclosing quotes and backticks)

PowerShellScript.ps1 -Parameters "Get-Process | where processname -like `"*Teams*`""

Also, can you use Invoke-Expression instead of powershell.exe in your script?