Selfscan.exe / VBScript is scheduled for deprecation.

Selfscan.exe / VBScript is scheduled for deprecation.

We use selfscan.exe and a scheduled wrapper to scan our laptop endpoints for audit purposes. As they're mobile endpoints with no network line-of-sight to a OnPrem server using a Probe is not possible.

We've recenlty noticed the following warning in the eventlog soon after selfscan.exe is executed.

---
The description for Event ID 4096 from source VBScriptDeprecationAlert cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

VBScript is scheduled for deprecation. Our telemetry indicates that your system is currently utilizing VBScript.
We strongly recommend identifying and migrating away from any VBScript dependencies at the earliest.

The following process has been detected as using VBScript. The associated process tree and call stack are provided below to assist in identifying the scenario in which VBScript was invoked.

ProcessName = "cscript.exe"
ProcessTree = "cscript.exe;SelfScan.exe;PTP_Service_Desk_Plus_Agent_Wrapper_Service_v2.exe;services.exe;wininit.exe"
CallStack = "vbscript.dll+0x3DD42;vbscript.dll+0x3CEF1;vbscript.dll+0x34171;cscript.exe+0x9160;cscript.exe+0x607B;cscript.exe+0x52EA;cscript.exe+0x4CAB;cscript.exe+0x4A28;KERNEL32.DLL+0x15D49;ntdll.dll+0x6D81B;ntdll.dll+0x6D7A1"
ProcessTreeEnhanced = "cscript.exe("cscript ae_scan.vbs 10");SelfScan.exe;PTP_Service_Desk_Plus_Agent_Wrapper_Service_v2.exe;services.exe;wininit.exe"

The message resource is present but the message was not found in the message table
---

We know selfscan.exe downloads ae_scan.vbs and then uses cscript to execute it. As "VBScript is scheduled for deprecation", this approach will stop working soon. Please advise a solution so we can continue to enumerate hardware and software on our end user laptops.

Thanks

Steve