One-Time "Set-ExecutionPolicy" Iteration in a Worklet
If you need to use the "Set-ExecutionPolicy" cmdlet in your worklet to get a script to work on your device, note that this executes on the iteration of the worklet, and then after PowerShell exits, it defaults to its original configuration.
After exiting PowerShell and re-launching
Additional information that might be helpful: https://bestestredteam.com/2019/01/27/powershell-execution-policy-bypass/#:~:text=It%20determines%20whether%20you%20can,signed%20before%20they%20will%20run
Article is closed for comments.