summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function virtualMachineRunCommandGet ( ) { const subscriptionId = "24fb23e3-6ba3-41f0-9b6e-e41131d5d61e" ; const location = "SoutheastAsia" ; const commandId = "RunPowerShellScript" ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . virtualMachineRunCommands . get ( location , commandId ) ; console . log ( result ) ; } virtualMachineRunCommandGet ( ) . catch ( console . error ) ;