To bypass hardware checks for TPM and CPU requirements for testing purposes.
In Powershell browse to the sources folders from the installation media. For example media on the D drive.
D:\sources
And run the setupprep exe file with the product server switch.
./setupprep.exe /product server
This will not install the server edition of Windows 11 but the rather use the currently installed OS specification.