Specify user when building exe

You’ll need to read the assembly embedded resource directly and then use Assembly.Load to load the bytes.

Here’s some C# code that you should be able to adapt to PowerShell.

   using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("EmbedAssembly.EmbeddedAssemblies.Newtonsoft.Json.dll"))
        var assemblyData = new Byte[stream.Length];
        stream.Read(assemblyData, 0, assemblyData.Length);
        return Assembly.Load(assemblyData);

Sometimes the hardest part is finding the proper manifest resource name. You can list those with this method call.

    foreach ($resource in [Assembly]::GetExecutingAssembly().GetManifestResourceNames()) {
        Write-Host "Resource: $resource"