Hello Michael,
Can you check the following two things:
- Details of the signing certificate.
- Whether a signature has been added to the .ps1 file
I just tried the sequence of commands that you used and got similar results.
In my case, the certificate "properties" (external to the certificate, can be modified) enabled all "purposes", but the certificate did not contain an "Enhanced Key Usage" or similar extension specifying code signing.
The .ps1 file was modified, but PowerShell also tried to verify the signature and ETW tracing showed that this failed because of "A certificate's basic constraint extension has not been observed.".
Your problem may differ in some details from mine, but the essence might be the same.
Gary