How to Sign a PowerShell Script with a Code Signing Certificate
To sign a PowerShell script, import a code signing certificate into the Windows certificate store, retrieve it with Get-ChildItem, and apply it to the script using the Set-AuthenticodeSignature cmdlet ...