There is a working batch file with powershell code in one line:
powershell -Command "& {$cont = wget http://САЙТ.info/; $cont = $cont.Content; $FilePath = 'contentFronHtml.txt' -f $env:SystemDrive; $cont | Out-File -FilePath $FilePath -Append -Width 200;}" I want to break the powershell code, to get something like:
SET LONG_COMMAND="$cont = wget http://САЙТ.info/;" "$cont = $cont.Content;" "$FilePath = 'contentFronHtml.txt' -f $env:SystemDrive;$cont | Out-File - FilePath; $FilePath -Append -Width 200;" powershell -Command "& {LONG_COMMAND}" How to connect strings of powershell code?