Function getFoundationCommand