AirGapped - Fixlet Powershell Add-AppxProvisionedPackage

Trying to install APPX unable to get this to work. I am not sure what I am doing wrong.
The download of the files work, but I am unable to get the Fixlet to complete on the client machine.
It just fails.
I would appreciate any help possible.
Thank you…

Using the following Fixlet example:

“prefetch” to __Download the file (this is working)

action uses wow64 redirection false

delete __createfile
createfile until END_OF_FILE

Add-AppxProvisionedPackage -Online -PackagePath "__Download\"filename".appx" -skiplicense


END_OF_FILE

delete powershell.ps1
move __createfile powershell.ps1

waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File powershell.ps1

At minimum you’ll need to fix the quoting on the filename in the PowerShell script

Actually that is just an example of what I typed. Filename is bogus. This actually have the name of the appx file. the only quotes are on the outside " "

I work on more than one network using IEM on the other. My Task on that systme work.
There is something with BigFix in running this task. I am not sure what the issue is.
The download is happening but the powershell command is failing.

This is a better example of the fixlet I am using:

prefetch 034f9ca0e59c0a0a1a6d7c11b285f7719bb2ea3c sha1:034f9ca0e59c0a0a1a6d7c11b285f7719bb2ea3c size:1595687 http:\xxxxxxxx:52311/Uploads/034f9ca0e59c0a0a1a6d7c11b285f7719bb2ea3c/Microsoft.HEIFImageExtension_1.0.50272.0_x64__8wekyb3d8bbwe.Appx.tmp sha256:04be844e7dedda508c20cc9bef414189d2ee1c1021cbeafaae674d83d639f535
extract 034f9ca0e59c0a0a1a6d7c11b285f7719bb2ea3c
wait __Download\Microsoft.HEIFImageExtension_1.0.50272.0_x64__8wekyb3d8bbwe.Appx

delete __createfile
createfile until END_OF_FILE

Add-AppxProvisionedPackage -Online -PackagePath “__Download\Microsoft.HEIFImageExtension_1.0.50272.0_x64__8wekyb3d8bbwe.Appx” -skiplicense

END_OF_FILE

delete powershell.ps1
move __createfile powershell.ps1

waithidden { pathname of file ((it as string) of value “Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell” of native registry) } -ExecutionPolicy Bypass -File powershell.ps1