判断输入是否为回车键

$b=$host.UI.RawUI.ReadKey()
$b.VirtualKeyCode -eq "13" #回车键Code为13

原文地址:https://www.cnblogs.com/dreamer-fish/p/4110362.html