k8s command to change context and namespace in one command code example
Example: kubectl switch namespace command
kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace: