Sorry to butt in here, but since I had the exact same issue when running the .bat file (and not the .ps1 file) I thought I'd chime in. See post #2991. Here are the results of the 2 requests made above:
DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- ------------ -------------- --------- ------------ ----------------- ------------- ----
D HASLEOBS FAT32 Removable Healthy OK 28.08 GB 28.89 GB
PS C:\Program Files\PowerShell-7.6.4-win-x64> powershell -nop -ep bypass -f C:\temp\test.ps1
Directory: C:\Users\theislands\AppData\Local\Temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- Thursday, July 30, 2026 41723480 2D0890CA-2A98-4054-9218-BE7C13306EB2.exe
9:06 PM
-a---- Friday, July 31, 2026 41728248 4FAB5FCE-5E9F-4B99-8D00-5F41F939C928.exe
9:29 PM
-a---- Wednesday, July 29, 2026 331776 7z.exe
3:25 PM
-a---- Friday, February 25, 2022 304128 offlinereg-win32.exe
6:52 PM
------ Thursday, January 29, 112654 wimlib-imagex.exe
2026 6:48 PM
-a---- Wednesday, July 29, 2026 1167872 7z.dll
3:25 PM
------ Thursday, January 29, 497678 libwim-15.dll
2026 6:48 PM
-a---- Monday, February 8, 2010 56200 offreg.dll
8:59 PM
PS C:\Program Files\PowerShell-7.6.4-win-x64>
If it is inappropriate for me to comment I apologize.