PPI How to Arrange

What exactly are the steps for requesting pre-purchase inspection with dealership.

Can’t believe a dealer will just let me take the car for a day to take to a service for inspection.

Do I have to sign an agreement that I will purchase the car once the inspection is done? If I have to sign a contract with for the negotiated OTD price, that seems to make mute the inspection. For example, if inspection finds a true problem, can one go back to dealer and say I want the cost for fixing it to be taken off the OTD price>

Do I need to pay a deposit to assure that I will return vehicle?

Please explain how allowance for a pre-purchase inspection actually works.