These are just user to user forums and most users don't know anything about repairing hardware so you need to be patient for someone to stumble across your post that may be able to assist you.
While a bad power supply is a possibility, the problem could also be with another component as well since you are effectively performing an SMC reset on the Logic Board and draining power from all the other electronics too.
The only power supply you can use is an official Apple power supply made for your exact model, but Apple doesn't sell parts to consumers. You may be able to find refurbished or used parts online, but you do need to be careful.
You don't mention your technical hardware abilities. People should not be opening an iMac at all because the power supplies on the later models such as a 2015 model is completely exposed which can cause a bad shock or even death if you don't know what you are doing. These power supplies can retain a charge for a long time after the computer has been unplugged from the electrical outlet. Only an experienced tech should open up an iMac especially when replacing a power supply. These newer iMacs are not easy to work on and contain very fragile & delicate cables & connectors that can be extremely difficult to disconnect & reconnect as there isn't much room to work or even see what you are doing. It is very easy to damage these cables & connectors.
Unless the fan is making noise or not operating correctly there should be no need to replace any of the fans (the iMacs have multiple fans).