Since I have been PMd with questions about this, and to answer Tom's comment with how I made my TASes. I used a program called VMWare Workstation 15 Pro with a virtual installation of Windows XP Professional 32-bit (64-bit doesn't seem to work). I believe I have seen either kopiapoa, NNN or both use Hourglass in some cases in Windows 7 (presumably in a VM) but whether this consistently works across games or is specific per game, I don't know. Anyone curious about that and skilled in Japanese would be able to ask them I think. If you have a decently strong computer TASing in a VM should be doable for everyone. You can use the above VMWare program and look up a license code yourself to be able to use it for an unlimited time.
Then to produce the TASes I used Hourglass r81. I have tried r83 as well, which should be optimized for Touhou specifically, but I found it to make save-state usage alot slower and eventually crashing Windows XP as well. This might just be my setup and might not happen to everyone.
With r83 you can save replays while making the TAS, but in r81 when you try to save a replay, it crashes the game in MoF onward. This problem is easily circumvented by just not recording inputs for saving the replay and simply saving the replay manually in real-time after your run has finished. Hourglass r81 does save replays properly in StB at least in my testing. As far as both r81 and r83 are concerned, MoF runs into problems getting it to run and from what I remember SA doesn't work at all.
A few subtle things to keep in mind while producing your TAS: your input recording can desync. The solution for this is to either keep restarting the input recording until it works, or use the splice-feature mid-recording to line it up again. This will require some trial-and-error. It would also not be a bad idea to make copies of your input-recordings. To save on time and worries, also often make Virtual Machine save-states on top of your Hourglass savestates. If anything unexpected happens, or you make a mistake and can't revert to an Hourglass save-state to fix it, then VM-savestates can fix your problem. This may depend on how much effort you plan on putting in your TASes, but the more effort you put into it, the more I advise to do this, personally.