AppLocker helps you control which apps and files users can run. These include executable files, scripts, Windows Installer files, dynamic-link libraries (DLLs), packaged apps (aka: Microsoft Store apps), and packaged app installers.

Run CMD as Administrator then then type:

sc config "AppIDSvc" start=auto & net start "AppIDSvc"

Ref: b2n.ir/j90934

How to block running PowerShell scripts on user workstations and RDS or RDP servers?

Ref: b2n.ir/e03579

To Set Startup Type to Disabled For AppIDSvc Services Use:

 change this registry value HKLM\SYSTEM\CurrentControlSet\Services\AppIDSvc\Start to 4 and then restart a computer.