En passant par une variable. $Command = ‘(New-Object System.Net.WebClient).DownloadFile(“url du site internet", “C:\temp\out.txt”)’ $Encoded = [convert]::ToBase64String([System.Text.encoding]::Unicode.GetBytes($command)) Pour exécuter la commande encodée : powershell.exe -EncodedCommand $Encodee