I have no idea why you need this, but if you’re unlucky enough to be on a windows device then you may as well get used to this, so here is a powershell for a BSOD..
while ($true) {
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.MessageBox]::Show("Blue Screen of Death!")
Start-Sleep -Seconds 10
}