Converts a command to a base64 powershell compatible string