I know it's a weird question but I am locked into a third party vendor which launches a 32-bit cmd.exe on a target 64-bit Windows Server 2008 R2 clustered server. From here I want to launch a 64-bit PowerShell window and run a script.
Here's my test:
powershell.exe "Get-Module -ListAvailable| Where-Object {$_.name -eq 'FailoverClusters'}"
If I run this from a 32-bit cmd.exe I get nothing returned. If I run from a 64-bit cmd.exe I get:
ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest FailoverClusters {}
Any ideas on what I can do to invoke a 64-bit powershell script from a 32-bit cmd shell?