Disable PS v2

PS C:\WINDOWS\system32> Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowershellV2

FeatureName      : MicrosoftWindowsPowerShellV2
DisplayName      : Windows PowerShell 2.0 Engine
Description      : Adds or Removes Windows PowerShell 2.0 Engine
RestartRequired  : Possible
State            : Enabled
CustomProperties :

PS C:\WINDOWS\system32> Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowershellV2 -Remove        

Path          :
Online        : True
RestartNeeded : False

PS C:\WINDOWS\system32> Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowershellV2                    

FeatureName      : MicrosoftWindowsPowerShellV2
DisplayName      : Windows PowerShell 2.0 Engine
Description      : Adds or Removes Windows PowerShell 2.0 Engine
RestartRequired  : Possible
State            : Disabled
CustomProperties :