I want to call test.bat which again triggers the Powershell.exe with the file test
test.bat:
Powershell.exe -ExecutionPolicy Bypass -File "test1.ps1 -Param1 Value1 -Param2 Value2"
test1.ps1:
param{$Tag,$CommitId}
Write-Host $Tag
Write-Host $CommitId
Both files are put on the same directory.
At the moment I get an error that my file does not have a .ps1 extension but thats not true... but I guess that is because I pass the parameters in a wrong way...
So how do I correctly pass the parameters to the call in the My.bat?