@echo off :: Script: mostrar_hola.cmd :: Objetivo: Mostrar el mensaje "HOLA" en pantalla. :: Comando de PowerShell corregido: :: Agrega el ensamblado PresentationFramework para hacer que [System.Windows.MessageBox] este disponible. powershell -Command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('HOLA')" goto :eof