pushd %~dp0 if not exist "C:\Scripts" mkdir "C:\Scripts" copy /y AutomaticallyInstallDefenderUpdates.bat "C:\Scripts" schtasks /ru "SYSTEM" /create /sc hourly /mo 1 /st 23:00 /tn "Install Windows Defender Updates" /tr C:\Scripts\AutomaticallyInstallDefenderUpdates.bat /f popd pause