PowerShell window closes when a command is executed from the Active Roles Server
説明
When typing a command, or pasting it into a PowerShell window, it closes immediately and doesn't display if the command executed or if there was an error while logged into the Active Roles Server.
原因
This issue can be caused by AntiVirus such as Macafee, or Trellix running that prevents the PowerShell command from completing and closes the PowerShell window as a security prevention for scripts being executed from the server.
対策
SOLUTION:
Confirm in the Windows Event Viewer Security logs if AntiVirus software is preventing the scripts from executing, and temporarily disable the Security Software or create an exception for the PowerShell module.