i am trying to package my script into an executable for the first time. after getting all of the prereqs installed and the exe built successfully. but when i run it i get an error about not being able to load the POSH profile due to execution policy. FYI the script is singed with a valid code cert.
Since i dont want the exe to attempt loading my POSH profile on other machines, is there a way to exclude the profile from the build? i couldnt immediately find a setting in the package.psd1 for that option.
Tool: Visual Studio Code, PSScriptPad, PowerShell Module
Version:
5.2.8.1