I am working on a batch script to read in some parameters and start a PowerShell script, which needs the typed in parameters.
What I have done so far:
Set /p arg1 = Type in a name for the data:
Set /p arg2 = Type in the directory of the project:
Set /p arg3 = Type in the programming language :
Set /p arg4 = Type in a version for the metric data:
SET ThisScriptsDirectory=%~dp0
SET PowerShellScriptPath=%ThisScriptsDirectory%Metrics.ps1
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%' 'arg1' 'arg2' 'arg3' 'arg4'";
Unfortunally the PowerShell script doesn't accept the parameters.