So weisen Sie einer Variablen im Batch -Skript einen Wert mit PowerShell zu,

@echo OFF
for /f %%a in ('powershell -file script.ps1') do set "pass=%%~a"
echo %pass%
Vivacious Vicuña