Example of how to run a PowerShell script from a Windows Batch file.
@echo off
powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\path\to\powershell\script.ps1'"
Example of how to run a PowerShell script from a Windows Batch file.
@echo off
powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\path\to\powershell\script.ps1'"