>>677
$a = . .\A.ps1 6>&1
で取得できる、使ってるPowerShellのバージョンにもよるけど