Pause Powershell Script Until Keypress Event Angular