@echo off REM Ensure PowerShell execution regardless of local policy powershell.exe -NoProfile -ExecutionPolicy Bypass -File "\\domain_name\SYSVOL\domain_name\scripts\Printers\XeroxDriverInstall.ps1" exit /b %ERRORLEVEL%