Powershell base64 encode file contents. ps1 Powershell Core (6+) Without -Raw flag:.

Powershell base64 encode file contents. txt file with the contents start notepad.