selfDestruct.ps1
|
<#
.SYNOPSIS This script self-destructs. .DESCRIPTION .EXAMPLE selfDesctruct .NOTES File Name : selfDesctruct.ps1 #> $scriptPath = $MyInvocation.MyCommand.Path function selfDesctruct { Start-Sleep -Seconds 5 Remove-Item -Path $scriptPath -Force } selfDesctruct |