Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$psFileFullPath = Join-Path $toolsDir "ps1crash.ps1"
Install-BinFile `
-Name ps1crash `
-Path "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" `
-Command "-NoProfile -ExecutionPolicy unrestricted -Command `"&'$psFileFullPath' %*`""
@ferventcoder
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment