Until yesterday when i executed a script inside powershell using either
"foo.bat"
or
"cmd /c commandhere"
It would run the command inside the Powershell and also print the output. Now since today it does not find "cmd" anymore and when use "cmd.exe" or execute a bat script it will open the cmd window instead of running the script inside powershell.
Does someone know if this is configurable or how i can get back to executing scripts just inside the powershell?
Edit: My env is:
PS C:\> echo $env:Path
C:\Windows\system32;C:\Windows\;C:\Windows\System32\Wbem;C:\Windows\system32\WindowsPowerShell\v1.0\;C:\xampp\php;C:\code\azure\bin;%SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Windows\System32