VBA, or Visual Basic for Applications, is a scripting language on Windows with access to ActiveX objects and the Windows Script Host.
Basic syntax for MS Office macros
Sub SampleMacro()
' This is a sample macro
CreateObject("Wscript.Shell").Run "cmd"
End Sub