So I finally got it to work. I ended up replacing the variable with ‘chrome’.
“Get-Process | Where-Object {$_.ProcessName -eq ‘chrome’} | Stop-Process -Force -ErrorAction SilentlyContinue”
It still errored out. I then checked IsScript and it now works. Thanks for the help