The purpose of those commands (in my list) was only to show the community that all other NetApp CmdLets are working correctly except for "Get-NaVolSpace".
I wasn't displaying a script, just a bunch of commands that I may run individually, depending on what I am looking for.
Your examples, although valuable, do not really get to the purpose of my inquiry.
As you can see, I do get the credentials and store in a variable and I do the same with the controller.
However, I can not get the "Get-NaVolSpace" CmdLet to work.
I just upgraded my Toolkit to the latest version (188.8.131.52).
I am running PowerShell v4
My version of OnTap is 7.3.7
I was just checking with the community to see if anyone else has experienced this problem with "Get-NaVolSpace". If they did or didn't, I'd like to know the versions of everything they are running to see if this is something specific to a version of PowerSheel, OnTap, or the Toolkit.
The "unable to find API" error indicates that the API the cmdlet is calling is not available on your version of Data ONTAP. The Get-NaVolSpace cmdlet uses the API volume-space-list-info-iter-start/next/end (you can find this information through Get-NaCommand) which is first available on Data ONTAP 8.2.