This will summon an invisible armor stand which has a pickaxe. The pickaxe, put in the right position, will look just like it is laying on the anvil. Use this command (Don't put the command block on top of the anvil! Then do the command and place the anvil below the pick) and it will work out.