We are trying to Start the WILDFLY Server using the powershell script. Here is the code
cmd.exe /c $env:JBOSS_HOME\bin\standalone.bat
write-host "Before Condition Check"
if ($?)
{
write-host "WILDFLY Server STARTED....."
}
else
{
$JBossResult = "FAILED"
write-host "Error While Starting WILDFLY Server"
}
The server is getting started successfully without any issue, but thing is that it is not coming out of the terminal, hence my next part of the code is not getting executed.
Is there anyway to come out of the terminal without stopping the server, so that I continue to my next step.