Script to execute Powershell using batch file where the location of the script is not hard coded.
@echo off
SET var=%cd%
powershell.exe -ExecutionPolicy Bypass -Command "& '%cd%\PowershellFile.ps1'"
Script to execute Powershell using batch file where the location of the script is not hard coded.
@echo off
SET var=%cd%
powershell.exe -ExecutionPolicy Bypass -Command "& '%cd%\PowershellFile.ps1'"