How do I have a PowerShell script embedded within the same file as a Windows batch script?
I know this kind of thing is possible in other scenarios:
Without fully understanding your question, my suggestion would be something like:
@echo off set MYSCRIPT="some cool powershell code" powershell -c %MYSCRIPT%
or better yet
@echo off set MYSCRIPTPATH=c:\work\bin\powershellscript.ps1 powershell %MYSCRIPTPATH%