Profile the command string via exec() with the specified namespaces.
profiling.tracing/Profile.runctx
Profile.runctx