Restrict Powershell Script

Description

Microsoft recommends restricting the Powershell Execution environment to secure against malicious attacks such as Cryptolocker etc. These scripts help secure Powershell from executing PS scripts and only interactive sessions are supported with the correct elevated privileges.

A custom field update is included at lines 12 and 15 that allow the Procedure to update a 'Powershell Status' custom field that can then be used to create Views for Policy Management use.