Powershell is telling me that my parent class is undefined, before it even tries to import that parent class. Details are as follows:
I have two classes, Parent, and Child. Child inherits from Parent.
Parent is located in Parent.psm1. Child is located in Child.ps1.
In Child.ps1, I have a line near the top of the script that says Import-Module C:\Path\To\Parent.psm1
When I try to run .\Child.ps1, Powershell doesn't even run the Import-Module command. Instead, it immediately tells me that the class Parent is undefined, which is obvious because it hasn't imported it yet.
How do I get Powershell to run the Import command before complaining that my classes are undefined?