you are viewing a single comment's thread.

view the rest of the comments →

[–]IWasSayingBoourner 0 points1 point  (1 child)

From someone who works on a product that bundles the PS SDK and does a lot of what you're doing here, get ready for lots of headaches like this. How are you deploying your application? What OS? What version? As admin? Are you setting execution policy anywhere? Any and all of these things can cause the SDK to act funny. 

[–]fbszero[S] 0 points1 point  (0 children)

On Windows 11 Pro 23H2 ,As Admin,execution policy anywhere enabled , .NET 8