While you cannot completely disable PowerShell, you can take several steps to limit the execution of PowerShell. The first step is that you can enforce execution policies to ensure that users cannot run arbitrary scripts. By default, Windows machines run with a Restricted execution policy. This allows users to run commands but not scripts.

Next, PowerShell has only access to the current system that you grant. Users should not be permitted high-level administrative permissions. PowerShell can only do what you allow the user’s account to have access to.