You have a couple of options, probably more:
Make your functions/cmdlets available as a script and dot-source them on the remote session:
. \\path\to\cmdlets.ps1
Another option you have is that a script block in PowerShell is an object, and as such can be assigned to a variable and re-used that way. Consider the following trivial example:
$files = { -not $_.PSIsContainer }
$folders = { $_.PSIsContainer }
dir | ? $files
dir | ? $folders
I hope these ideas help. I am sorry I don't have a more direct answer. Maybe if you could provide some examples of what you have tried and what errors you are experiencing it would help to give a more direct, better answer.