I am writing a batch file to automate a task using vscode where I get a powershell as my default shell.
The line if not exist build (md build) produces errors in powershell.
When I pack the same line into a batch file called test.bat I can call ./test.bat and get the expected behaviour.
Is there a way to test my batch statements directly in the powershell?