title: Decode base64 encrypted LogResult of "AWS Lambda invoke" in Windows PowerShell
body: <p>I am using <code>AWS Lambda Invoke</code> to test my lambda functions from Powershell. Unfortunately I can't manage to get a usefull log result. If I decode the result like this there are not line breaks seperating the log-lines:</p>
  
  <pre><code>$response = aws lambda invoke --function-name my-lambda-function --invocation-type RequestResponse --log-type Tail --payload file://sample-event.json outfile.txt | ConvertFrom-Json
  $DecodedText = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($response.LogResult))
  $DecodedText
  </code></pre>
  
  <p>Any idea what I can do to have the logs nice and readabel line after line?</p>