Today I checked the possibilities of VS Code in the context of SAP GUI Scripting. I use the x64 version and after a while I noted that SAP GUI Scripting works without any problems. So I checked the access to the SAP GUI Scripting API from PowerShell x64, AutoIt x64 and VBScript x64 and in all cases it works perfect. I assumee that this possibility came with one of the newer patch levels of SAP GUI for Windows 7.40. So far it was necessary to use always x86 applications.
In the image below an example with PowerShell ISE x64.
In the image below the same PowerShell example with Visual Studio Code x64.
In the image below an example with AutoIt x64 and Scripting Tracker.
Good to know and a great thanks to the developer team.