>>107113401
your retardedly named variable is probably an array that contains multiple strings, and one of the string contains ANSI escape sequences that clear the line. you don't need to use write-host, you can just eval the variable in the shell
PS C:\Users\Me> $output_02193410 = @("{'post': {'id':'123'}}"; "`x1b[2K`rRequest failed with error: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)). Retrying after 15 seconds... Received status code 404.")
PS C:\Users\Me> Write-Host "The output: ""$output_02193410""."
Request failed with error: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)). Retrying after 15 seconds... Received status code 404.".
PS C:\Users\Me> $output_02193410
{'post': {'id':'123'}}
Request failed with error: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)). Retrying after 15 seconds... Received status code 404.
PS C:\Users\Me> $output_02193410.StartsWith("{'post': {'id':")
True
False
TL;DR: why the fuck are you manipulating the output of a python script in powershell?