Learn the format of executables on the platforms you want to support. Make an executable that matched that and prints that name.
Write that binary file and mark it as executable.
Given how simple your program is, it shouldn't be long. You can futz with how the bytes would work by compiling a program in C++ manually. I advise using printf instead of std cout.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…