Changing out old two wire switch to new three wire grounded switch
You can't anyway.
Kitchen lighting is not allowed on kitchen receptacle circuits.
By putting a receptacle on a lighting circuit,  you are creating a code violation.
Now, if the kitchen wiring was done at a time before this was required, and permits were pulled, then the kitchen wiring as it is now is &quot;grandfathered&quot;.  It's allowed to continue in service even though it would never be approved today, because it was legal at the time.   This is not license to modify it.
Modifications must meet Code at the time they are installed. Today, kitchen/pantry/dining area receptacles must be on 20A circuits which are dedicated to serving receptacles in those areas, with no other loads allowed except for auxiliary electric loads on a gas range, and a wall clock.  There must be at least 2 such circuits, but the inspector would surely let you slide on that if you were only installing a couple of additional receptacles.
Since the circuit you are speaking of has a hardwired light on it, you can't add a kitchen receptacle to it.