convert_vbscript_to_powershell
Converts a VBScript script to idiomatic PowerShell (Windows PowerShell 5.1 by default, or PowerShell 7), preserving behaviour, exit codes and side effects, replacing COM objects with native cmdlets where possible. Returns JSON: the PowerShell code, a review checklist of warnings (AI warnings + automatic static-scan findings), blockers, security flags and the risk score. The result is a draft for human review and testing, not a guaranteed drop-in replacement.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "convert_vbscript_to_powershell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | VBScript source code (max 30000 characters). | |
| target | No | Target PowerShell version. Default: ps51 (Windows PowerShell 5.1, preinstalled). | |
| context | No | Optional: how the script is run (logon script via GPO, scheduled task, SCCM/Intune, manual) and anything the converter should know (max 1000 characters). |