I was trying to run some commands inside a powershell script. The scrpt execution doesn't show any error. Script content is like:
Export-PfxCertificate –Cert $selectedcert_CA –FilePath "C:\\Windows\\System32\\CA_cert.pfx" -Password $SecurePassword -Verbose -force
But when I execute the powershell script from ruby as:
powershell.exe -file file.ps1 arg1 arg2
It displays file is created on path but I don't see any file created. If I run the same command separately (not in script just as a powershell command), it creates the file perfectly.
Is there any rights issue or I need to run the script with some permissions.