App Control can prevent execution of Script Processors such as CMD.exe and PowerShell.exe from non-default locations.
App Control Windows Agent: All Supported Versions
To prevent prevent executions of Script Processors such as CMD.exe and PowerShell.exe from non-default locations, configure and enable the Script Processors Rapid Config (Software Rules > Rapid Configs)
A best practice is to enable Rapid Configs in Report-Only mode and monitor for a week before switching it to Block action.