バッチファイルから文字が入力された状態のPowerShellを起動する


需要があるかわかりませんが。

test.bat
SET str=aaaa
start Powershell -NoExit -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait(\""%str%"\")"