Is there a way of writing a batch-script that's executed via
C:\>cmd.exe a.bat to switch into
powershell.exe and run the remaining lines of code?
1. | echo "Hi. I'm cmd.exe." 2. | powershell 3. | echo "Now, I'm PowerShell.exe! Look:" 4. | get-random
This just stops after line #2 waiting for input.