Just use some long screws. Self tapping like a long drywall screw. Don't forget to leave space so the intake side of the fan can draw air.
Maybe some tubing or nuts for spacers.
Hope that helps.