Do you mean a PowerShell script file?
It's a plain text file, which you can edit them in any text editor. Or more comfortable in tools like Visual Code
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have recently found out that typing "wininit", and running it in powershell blue-screens your computer.
I was wondering if there was a way to run powershell this by opening a file/running a file, so that I could mess with my friends.
Do you mean a PowerShell script file?
It's a plain text file, which you can edit them in any text editor. Or more comfortable in tools like Visual Code
Hello,
Initially, I would not recommend playing around with command instructions that can force a BSOD error on the system, as it could lead to corruption of memory, virtual memory allocation, and storage on the target system.
Besides this, you can convert a PS1 file into EXE with the PS2EXE Powershell module.
First Install the module with:
Install-Module ps2exe
then you can convert your file for distribution with:
Invoke-ps2exe .\source.ps1 .\target.exe
--If the reply is helpful, please Upvote and Accept as answer--