Updated script to use Import-Function.

Applied the change because Adam said so.