.psm1 is not digitally signed. You cannot run this script on the current system. code example
Example: digitally signed react native
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass