Luzern To pilatus round trip is free with Eurail??
Luzern to Alpnachstad with boat
Pilatus Bhan to Pilatus Kulm with Cogwheel train
Pilatus Kulm to kriens with cable car
Is this trip is free with Eurail Pass??
No, it's not free, but you'll get a discount. Please note that Annika has already referred you to all details about coverage in your other thread, so you can check this yourself.
Is it free with Swiss travel pass??
No, it's not, but you'll get a bigger discount. Is something not clear about the page you were referred to?