Include powershell module in EXE

Posted by Sad_Mastodon_1815@reddit | sysadmin | View on Reddit | 17 comments

Before now i used pwsh only for scripting in intune and software packaging. Now i have a usecase for a small "programm" to automate a process in our company. I builded a small tool with powershell for that. Now i want to make it better with PwshSpecrteConsole and make it to an executable. But how can i implement the module in the executable? What i also want todo is to wrap the script-exe afterwards in another exe with the config file and it should be placed in C:/ProgramFiles. How can i do that?