Run shell command from an x86_64 shell in swift

I need to run a series of shell commands from swift, in x86_64 mode, how could I achieve this?