peewpw / Invoke-PSImage

Encodes a PowerShell script in the pixels of a PNG file and generates a oneliner to execute
MIT License
2.16k stars 397 forks source link

the term 'xxxxxx' is not recognized as the name of a cmdlet #8

Closed plissje closed 6 years ago

plissje commented 6 years ago

Hi, Trying to run this via a simple script, that will just 'write-output 123', and I'm getting an error when trying to execute the one-liner: screenshot_3

any ideas? :)

peewpw commented 6 years ago

I cannot reproduce this one. I would guess the encoding on your input file is wonky. Try recreating that file and see if that helps.

You can also try

and see if the script displays as expected. That is how the tool gets the script content to encode.