@Kuba-Kajderowicz What are you executing that code from within?
You might want to have a quick read of: