See https://github.com/bruderstein/PythonScript/blob/master/appveyor.yml to get an rough idea how to build it with VS2022 ...