aeveltstra, 10 hours ago to Powershell In #powershell ISE it may appear not needed to import #dotnet types. But when running the same script from a command prompt, Powershell doesn't recognize them. Import them using the Add-Type commandlet. https://gist.github.com/aeveltstra/94806a1230b8165f43e9b4e4dec9bacc?permalink_comment_id=5070100#gistcomment-5070100
In #powershell ISE it may appear not needed to import #dotnet types. But when running the same script from a command prompt, Powershell doesn't recognize them. Import them using the Add-Type commandlet. https://gist.github.com/aeveltstra/94806a1230b8165f43e9b4e4dec9bacc?permalink_comment_id=5070100#gistcomment-5070100