Javascript – NodeJS – Child Process – Exec VS Powershell ISE | why are the results different?? why can't the PSCredential be created?
MY PS Script: $admin = "TEST" $Password = ConvertTo-SecureString "Test12345" -AsPlainText -Force $Credential = [PSCredential]::new( $admin, $Password) if ($Credential -is [System.Management.Automation.PSCredential]) { return "PS Credentials - true" } else { return "PS Credentials - false" } RESULT in PS ISE:…