echo \" <<'BATCH_SCRIPT' >/dev/null ">NUL "\" \`" <#" @ECHO OFF REM ===== Batch Script Begin ===== ECHO I'm PolyShell, a batch script! REM ====== Batch Script End ====== GOTO :eof TYPE CON >NUL BATCH_SCRIPT #> | Out-Null echo \" <<'POWERSHELL_SCRIPT' >/dev/null # " | Out-Null # ===== PowerShell Script Begin ===== echo "... but also a PowerShell script!" # ====== PowerShell Script End ====== while ( ! $MyInvocation.MyCommand.Source ) { $input_line = Read-Host } exit <# POWERSHELL_SCRIPT set +o histexpand 2>/dev/null # ===== Bash Script Begin ===== echo "... and a Unix shell script!" # ====== Bash Script End ====== case $- in *"i"*) cat /dev/stdin >/dev/null ;; esac exit #>