2011 Nissan Cube - Won't accelerate

Most used car dealers install used parts, if they replaced it with a new one then it should have come with a warranty…

Was this a buy here pay here lot (tote the note) dealer??

I wouldn’t be surprised, I have seen Nissans have to have the ECM’s flashed after installing a basic sensor…

Again, you might just need a few sensor/solenoids and save you a ton of money, have it properly checked out…
A reputable transmission shop will have all the software to program whatever is needed, they will do a turn key job…