Can anyone advise can use the below command to run the power shell on any of the windows server irrespective of os version and powershell version. if this will not help can you please suggest the correct command line to inculde in action script.
There are some occasions and certain commandlets where 32-bit or 64-bit Powershell is required specifically. In those cases, when the action is running on a 64-bit OS, you might need relevance to use the appropriate one.
action uses wow64 redirection {not x64 of operating system}
If you don’t use that line, then it will always use 32bit powershell. If you use that line, then it will use 32bit powershell on 32bit systems and 64bit powershell on 64bit systems. You just have to comment out that line if you need it to always use 32bit powershell.