Invoke-Command -ComputerName $input -ScriptBlock {Get-Process -Name amazon-ssm-agent | foreach {Stop-Process -Force} -ErrorAction Stop}
When i pass the value to stop-proc