Graphics are built in to that intel i7-8700K so you will need to disable the onboard graphics. There are multiple ways so I would refer to your documentation. I wouldn’t try to run the game on the highest settings on a 1050. How much VRam does your 1050 have?
Similar to my laptop, apex said it didn’t meet minimum requirements, but it runs great as I’ve got it set to switch graphics from processor to nvidia when it’s in game.
Easiest way to make sure you are using your Nidia card is to disable CPU graphics in the cmos.