It looks as if you didn't do step 1 or 2 correctly.
Did you notice the 2 dots with a space in between in step 2?
That is called dot-sourcing and that is how you make sure your session "knows" that function.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference