It is possible to run AutoMassSecure™ from outside of Adobe® Acrobat® via a command-line BAT file.
Use this method to automate document securing by starting the processing from
an another application or Windows Task Scheduler. This functionality is available in version 1.8 and up.

You would need to configure the AutoMassSecure™ settings using a regular method via user interface
prior to running it via a BAT file. Settings need to be saved into a *.masssecure settings file.

Configure the Processing Settings

Use "Plug-ins > Secure Files..." menu to configure all necessary processing settings.
See other available
tutorials for details on how to configure and use AutoMassSecure.
Test the processing settings in the regular user interface mode to make sure they are working correctly.
Save ready-to-use settings into a *.masssecure file by clicking "Save Settings" button.
This will create a settings file that contain all necessary parameters for the securing PDF files.
The settings file defines how the files are going to be secured, where to place the resulting files and passwords.

Create a BAT File

Use any plain text editor (such as Notepad) to create a blank text file.
Add the following lines to the file.
Make sure to replace paths and filenames with the actual filenames you are using.

The example below shows how to start Acrobat DC and secure Test.pdf PDF file
using the security settings from Settings.masssecure file.