@[DISPLAY]:ShellExecuteA Causing Memory Access Violation

I'm using 10.5.0 thin client on Windows 11 and it comes up with Memory Access Violation when I run Shell32.dll to display a PDF file.   

When I use thick client, there are no problems, or if I drop the @[Display] and run this in thin client - then comes up with authorisation issues.