I have created a batch file which contains the below line of code and when executed the batch file ,the new folder is not created.I don't want to create new .ps1 file and place the code in it.
START /W powershell -noexit $FolderPath= "C:\TestFolder"
#Check if Folder exists
If(!(Test-Path -Path $FolderPath))
{
New-Item -ItemType Directory -Path $FolderPath
Write-Host "New folder created successfully!" -f Green
}