Powershell Job seems to be typing the {Enter} key. How to make it not interact with my job?
at following link have powershell not behaving expect to.
at high level script creates powershell job (script block) , runs it.
within job console.readline(). expect block , wait (forever). task completes. means (powershell itself) interacting job "typing" {enter} @ point console.readline() executes?
how make similar script block @ console.readline()?
thanks.
i don't know why powershell readline. you'll have change readkey() instead. works, , can compare specific key if want make harder accidentally close when it's run in regular console
Windows Server > Windows PowerShell
Comments
Post a Comment