I use this command line to do what are describing:
convert.exe <filename>.psd -set dispose Background -coalesce <outfilename>.png
I use this command line to do what are describing:
convert.exe <filename>.psd -set dispose Background -coalesce <outfilename>.png