Self-Destruct.ps1

<#
.SYNOPSIS
Self-descrution script.
 
.DESCRIPTION
This script self-destructs.
 
#>


Read-Host -p "Press 'ENTER' to continue"

$scriptPath = $MyInvocation.MyCommand.Path
function selfDestruct {
    Start-Sleep -Seconds 5
    Remove-Item -Path $scriptPath -Force
}
selfDestruct