You can block windows application from server 2022 using group policy object features.
1- Open group policy object (GPO)
2- Select you reference user container you want to apply GPO
3- Right click on selected container and click on edit.
4- after then policy editor wizard will open on screen
5- Click Administrative Template under user configuration.
6- Administrative Template - System
7- system - right side show the list of prevents (Don't run specified windows application )
8- select enable radio button
9- Click on Show button under in option.
10- Enter windows application name with extension.
11- Then apply & Ok
12- open CMD and enter command - gpupdate /force
13- gpupdate successfully .