How to Set affinity for an application in windows 10 / 11

How to Set affinity for an application in windows 10 / 11