iconv

  • Convert script to windows encoding (oscp sv-file01) cat script.ps1 | iconv --to-code UTF-16LE | base64 -w 0