Terminer un script dans PowerShell
Source : Stack Overflow [powershell].)
Vous devriez utiliser le mot-clé exit.
exit