I assume you are trying to execute WFA powershell cmdlets like Get-WfaLoger, Get-WfaCredentials etc. from module WFA from a Powershell console. Correct? This is when you get this exception thrown.
This is expected behaviour. The WFA cmdlets from module WFA can't be called outside of the WFA except for reading the get-help documentation. See my response on this thread
What is it that you are trying to do with using these cmdlets outside in a Posh console? If you can provide more details, I can try to help.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.