Both of these commands fail when executed through either ISE or a generic PowerShell console. In both cases I registered the VeeamPSSnapin. If I execute the same commands via PowerShell remote (my workstation to the Veeam server) the commands run perfectly. Is there anything I'm missing about running these commands locally on the Veeam server?
While logged in with a user account that is a local administrator on the server, I opened two PowerShell consoles side by side (one using the "run as administrator"). I tested the commands in the standard PowerShell sonsole first and in both cases the commands failed. When running each of the commands in the (run as admin) console they both worked like a charm.
Thank you for the prompt follow-up and fix Vladimir!