How can I run SQL Server Vulnerability Assessment from a SQL Job?
You are getting that error because the module is not imported.

You have to use 

import-module -name sqlserver  # or path to the module


see : Running PowerShell in a SQL Agent Job