The following command outputs 4 lines:
PS C:\\> &{ py -3 -c "for i in range(2): print(f\'{i}\\r\\n\', end=\'\')" ; Write-Output "" ; Wr