Open Virtual Machine Manage Command Shell. From the shell type:
Where:
C:\Users\User01\Documents\script1.ps1 - the script to be run
PS c:\> Invoke-Expression C:\Users\User01\Documents\script1.ps1
Where:
C:\Users\User01\Documents\script1.ps1 - the script to be run
Comments