Documentation
1
2
3
4
5
6
param (
    [Parameter(Mandatory=$true)]
    [string]$arg1
)

taskkill /IM "$arg1" /F