...
echo "Output: some info to output"
...
echo 'some info, that shoud NOT be visible outside'
....
echo "Output: some other info to output"
....
...
(wsl 'run.sh' | select-string 'Output:') -replace '^Output:'
...
(wsl /mnt/c/Users/MissAnastasiia/Script/start.sh) -replace ‘.*Downloads (.*)', '-> $1’
, без "трубы".но со стороны повершелла код будет устроен так же
Но я не помню, было ли такое в winXP, а посмотреть негде