I want to close powershell window after my batch script completes execution. This is my batch script. I tried exit command but it is closing only command prompt.
@ECHO OFF
setlocal EnableDelayedExpansion
start PowerShell.exe -Command help
powershell.exe -command exit
I want to close powershell window from my batchscript. Which command I am missing?