1. Obtain code signing certificate from SSL vendor.
2. Import the certificate to the machine.
3. On powershell issue below command.
Set-AuthenticodeSignature path @(Get-ChildItem cert:\CurrentUser\My -codesign)[0]
Where path is location of the script which you want to sign.
2. Import the certificate to the machine.
3. On powershell issue below command.
Set-AuthenticodeSignature path @(Get-ChildItem cert:\CurrentUser\My -codesign)[0]
Where path is location of the script which you want to sign.