$a = "`n0 = Unrestricted","`n1 = RemoteSigned","`n2 = AllSigned","`n3 = Restricted","`n4 = ByPass","`n5 = Undefined"
[void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$newstate = [Microsoft.VisualBasic.Interaction]::InputBox("Welche neue Sicherheitsstufe soll gelten? $a", "Neue Ausführungsbeschränkung", "3")
set-ExecutionPolicy -ExecutionPolicy $newstate
$AktEPol = Get-ExecutionPolicy
# Mögliche Buttons: OK, OKCancel, AbortRetryIgnore, YesNoCancel, YesNo, RetryCancel
$buttons=[system.windows.forms.messageboxbuttons]::ok
# Mögliche Ikons: None, Hand, Question, Exclamation, Asterix, Stop, Error, Warning, Information
$icon=[system.windows.forms.messageboxicon]::Information
[system.windows.forms.messagebox]::Show("Die aktuelle Richtlinie ist...$AktEPol","Mehr geht nicht...",$buttons)